Read more

Fix multiple CKEditor instances using jQuery adapter - fixed since 4.2

Martin Straub
October 21, 2011Software engineer at makandra GmbH

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

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

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.

Posted by Martin Straub to makandra dev (2011-10-21 15:06)