Fix multiple CKEditor instances using jQuery adapter - fixed since 4.2

Updated . Posted . Visible to the public.

Using the jQuery adapter breaks the built-in save function of CKEditor.

Phenomenon: The page is submitted correctly, but the original values of the form fields were posted instead of what was typed in the editors.

Work around: Basicly instead of initiating the editor using the above example I ended up using the following:

$( 'textarea.editor').each( function() {

    CKEDITOR.replace( $(this).attr('id') );

});

Note: This assumes that each field using the editor has its own unique ID.

Martin Straub
Last edit
Keywords
field, element, textarea, textareas
License
Source code in this card is licensed under the MIT License.
Posted by Martin Straub to makandra dev (2011-10-21 13:06)