CKEditor allows the HTML it generates to be formatted rather than just validated. When the option to insert a new line after opening tags or before closing tags is enabled, the regex in Pagination->retag fails due to the inserted white space.
Forgive the lack of a patch; we're working with Mercurial here and I frankly haven't figured out how to get a patch for one file instead of the whole repository yet.
The regex in the module, around line 452:
var $re_tag = '/(<p>\s*)?<h3>(.*?)<\/h3>(\s*<\/p>)?/mi';
should be:
var $re_tag = '/(<p>\s*)?<h3>\s*(.*?)\s*<\/h3>(\s*<\/p>)?/mi';
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | newhope_1964_f232e3d65867.patch | 724 bytes | Prometheus6 |
Comments
Comment #1
Prometheus6 commentedOkay, this is the patch Mercurial generated.
Comment #2
mundanity commentedAh great, thanks for that, I'll update dev likely this weekend.
Comment #3
mundanity commentedUpdated in dev.