If you examine the source created by instantiating the fck editor, you'll
see that it's not just a CSS height on a textarea anymore. You'll find that
you're inside an iframe.

If this line from Den's example works:
ColdFusion.RichText.getEditorObject('your_textarea_id');

then you would do something like:
var myRTE = ColdFusion.RichText.getEditorObject('your_textarea_id');
myRTE.Height = '600';



On Tue, Jul 20, 2010 at 2:59 PM, Bryan Stevenson <
[email protected]> wrote:

>
> Thanks Den!!
>
> I tried your example and it does in fact fire off the alert!
>
> I modified it to adjust the textarea height....no love!!
>
> Here's the JS I tried:
>
> ---------------------------------------------------------------------------------
> <script>
>        function doIt() {
>            //alert( "Say cheese!" ) ;
>           document.myForm.myArea.style.height=600;
>         }
>
>        function FCKeditor_OnComplete( editorInstance )
>        {
>                editorInstance.Events.AttachEvent( 'OnSelectionChange',
> doIt ) ;
>        }
> </script>
>
> ---------------------------------------------------------------------------------
>
> Here's the CFTEXTAREA:
>
> ---------------------------------------------------------------------------------
>            <cftextarea name="myArea"
>                        id="myArea"
>                        richtext="yes"
>                        toolbar="ACATS"
>                        skin="office2003"
>                        height="200"
>
> toolbarOnFocus="yes">#FORM[textVarName]#</cftextarea>
>
> ---------------------------------------------------------------------------------
>
> Yes the above text area is inside a form named "myForm" and the name and
> ID for the CFTEXTAREA is "myArea".
>
> It doesn't error, but it does appear to impede the behaviour of the
> "toolbarOnFocus" as the toolbar doesn't expand when the textarea is
> clicked.
>
> So perhaps adjusting the height is still locked out??  It should just be
> as simple as changing the CSS style for height...but alas.......
>
> Any ideas?
>
> TIA
>
> Cheers
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> phone: 250.480.0642
> fax: 250.480.1264
> cell: 250.920.8830
> e-mail: [email protected]
> web: www.electricedgesystems.com
>
> Notice:
> This message, including any attachments, is confidential and may contain
> information that is privileged or exempt from disclosure. It is intended
> only for the person to whom it is addressed unless expressly authorized
> otherwise by the sender. If you are not an authorized recipient, please
> notify the sender immediately and permanently destroy all copies of this
> message and attachments.
> Please consider the environment before printing this e-mail
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335568
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to