We are attempting to use a rich text editor. By default, the span for the RTE gets a width of 760px. This is much wider than we'd like.
The id attribute of the span control gets set to cke_<PAGE_ITEM_NAME_HERE>, so this jQeury selector should obtain a reference to the control and allow us to change or remove the width attibute
span#cke_P3_DESCRIPTION_2
However, what we've notice is that the control does not exist until
after the page has been loaded. In other words, if we do this in the "Execute when Page Loads" section, nothing happens
$('span#cke_P3_DESCRIPTION_2').css('width','');
We can confirm this by popping up an alert. In the page load section, this yields "0" but, in a button on the page, that gets clicked after the page is open, it yields "1"
alert($('span#cke_P3_DESCRIPTION_2').length);
So, since the control isn't actually there at load time, what's the best way to do this?
-Joe