-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
None
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
The tinymce.html.Node.isEmpty() is broken in that it will consider the following to be empty:
<pre> </pre>
Even though it is meant to preserve white space for elements like PRE where white space is significant.
The fix is to change the signature of the method from isEmpty(nonEmptyElements) to isEmpty(schema).
The schema will provide the implementation of the isEmpty method access to:
- nonEmptyElements via schema.getNonEmptyElements()
- whiteSpaceElements (like PRE) via schema.getWhiteSpaceElements()
The implementation should be fixed to respect both these kinds of elements.
- causes
-
CONFSERVER-23566 Copying and pasting white space inside the code macro does not work (right click also causes the selection to collapse undesirably)
-
- Closed
-
-
CONFSERVER-24330 Confluence editor does not preserve layout when pasting tab characters
-
- Closed
-
- relates to
-
CONFCLOUD-24365 PRE elements containing a textnode with only white space is erroneously considered empty by core tinymce code
-
- Closed
-
- mentioned in
-
Page Failed to load