Opened 6 days ago
Preserve whitespace around protectedSource entries
|Reported by:||ximunderscore||Owned by:|
Steps to reproduce
- (optional) Install e.g. “Show Protected” to see protectedSource elements.
- Set up your CKEditor with e.g. a PHP protectedSource: [/<\?[\s\S]*?\?>/g]
- Open CKEditor and enter source editing mode
- Input “<p><?php print_something(); ?> was printed</p>”
- Exit source editing mode
There should be a whitespace between protectedSource block and “was printed”
There is no whitespace after the protectedSource block. Re-entering source editing shows that input has changed to “<p><?php print_something(); ?>was printed</p>”.
Other details (browser, OS, CKEditor version, installed plugins)
Tested in Chrome 57 and Firefox 52. Using lots of plugins, but this appears to be plugin independent.