Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

FYI: Redactor and DIV tags

edited March 2013 in Apps

Looks like there are a bug in the Redactor - DIV tags in edited text are allowed but not processed correctly. Just examples:

<div>Test</div>

will be converted to

<p>Test</p>

by the Redactor (that's correct if convertDivs is enabled (by default)).

<div><p>Test</p></div>

will be converted to

<p><p>Test</p><p></p>

Comments

  • Well.. there are regular expression issue. I think the best fix right now is to disable this conversion in apps\admin\views\util\wysiwyg.html - set convertDivs option to false.

  • I'll check it out. Looks like there's a Redactor update available too, although I can't seem to find a change log anywhere...

  • Found the log, first link on the left in their docs haha

    I think I've got a fix for this too. Gonna submit it to the Redactor folks now.

Sign In or Register to comment.