Opened 10 years ago

Closed 10 years ago

#5113 closed Bug (invalid)

When calling through javascript toggle, editor not Loading, help me pls

Reported by: mady Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Hi,

I want a editor container enable, when js toggle is called On or OFF, i tried to call using the below script but i failed, whats wrong am doing, pls help me

JS Function: <script type='text/javascript'> function menuonchange() {

if(document.menu_add.Menu_Type.value == "none") {

var e = document.getElementById("menu_content"); e.style.display = 'block';

} else {

var e = document.getElementById("menu_content"); e.style.display = 'none';

}

} </script>

Editor Container

<div class="row"> <textarea class="textarea_forms" dir="rtl" rows="1" id="Menu_Content" name="Menu_Content" cols="50" style="display:none"; ></textarea>

<script type="text/javascript">

CKEDITOR.replace( 'Menu_Content' );

</script></span>

</div>

Attachments (1)

JS_editor_toggle.html (4.6 KB) - added by mady 10 years ago.
Toggle in Editor not working,

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by mady

Attachment: JS_editor_toggle.html added

Toggle in Editor not working,

comment:1 Changed 10 years ago by Alfonso Martínez de Lizarrondo

Keywords: toggle javascript removed
Resolution: invalid
Status: newclosed
Version: SVN (CKEditor)

Please, use our forums for general support.

You are changing the visibility of the textarea, not of any container.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy