Our Blog

22.11.11 @ 11:25

Making cck multi-field, ajax and ckeditor work nicely together

SUBMITTED BY Shunit Ben-Tzvi

The problem:
When clicking "add more values" to add another field to a cck multi-value field, and if you're using ckeditor, the existing multi-value fields will disappear.

So, if you have cck multi-field, and must use ckeditor, here are 3 useful things to do:

  1. Detach the ckeditor instances before attaching them again:
    http://drupal.org/node/712846

  2. Set rtl / ltr:
    http://drupal.org/files/issues/457620-ckeditor-direction.patch

  3. In the wysiwyg module's profiles, set the css to be used to "define css" - then it will load again after ajax is run.

3 Comments so far

Guest (not verified) 7 weeks ago
I don't think so - it doesn't

I don't think so - it doesn't look familiar. Does it work for you?

Shunit Ben-Tzvi 6 weeks ago
i didnt, was wondering if you

i didnt, was wondering if you did,
i must say that applying
http://drupal.org/node/712846
didnt work for me as well

Guest (not verified) 6 weeks ago

Post a Comment

The content of this field is kept private and will not be shown publicly.
  • Use one of the forms name.module, name.theme, name.translation, name.installprofile or name.project, in order to link to http://drupal.org/project/name. Note that a link will be generated even if a project does not exist.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <b> <a> <p> <br> <em> <strong> <cite> <blockquote> <table> <tr> <td> <th> <tbody> <ul> <ol> <li> <dl> <dt> <dd><img> <div> <h2> <h3> <h4> <code>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options


Or