Item12847: Weird blank line in WYSIWYG mode when first line is a MACRO followed by a table
Priority: Low
Current State: Confirmed
Released In: n/a
Target Release: n/a
Create a topic that contains the following wiki text (or see
EditTest10 or
http://trunk.foswiki.org/Sandbox/EditTest10):
%TOPIC%
| Table | Text |
Edit that topic in WYSIWYG mode and you can see a strange blank line above the TOPIC macro.
--
LeilaPearson - 04 Apr 2014
This is done intentionally. The TinyMCE editor has issues where it's not possible to position the cursor ahead of the first element of a page, or after the last element. The Wysiwyg conversion attempts to work around this by inserting a blank line, and then removing it on save. It shows up as:
<p class="foswikiDeleteMe"> </p>
Marking this as confirmed, but we probably can't fix it unless a new version of the TinyMCE editor component resolves the cursor positioning issue.
--
GeorgeClark - 08 Apr 2014
I don't see a cursor positioning problem on the demo page for TinyMCE 3.x. Looks like if we upgrade to the latest 3.x (or 4.x) we could remove this workaround.
--
LeilaPearson - 14 Apr 2014