Opened 8 years ago
#16976 new Bug
Preserve whitespace around protectedSource entries
Reported by: | ximunderscore | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.6.2 |
Keywords: | Cc: |
Description
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
Expected result
There should be a whitespace between protectedSource block and “was printed”
Actual result
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.