Item12846: Unexpected indention for bullet copy-paste
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Steps to reproduce
- In WYSIWYG mode, create a bulleted list with a few single-word items as an example. For example:
- Double click on - for example the word "three" in the list to select it.
- CTRL+C to copy the text
- Insert the cursor after "one"
- CTRL+V to insert the text
Expected behavior
- Text should be inserted on the same line without creating a new bullet I think. If I want a new bullet, I would expect to press Enter to insert one in the list.
Actual behavior
- Not only is a new bullet created, but it is actually indented one level from all of the other bullets.
- If the user then uses the outdent button to fix this problem, html span tags get inserted, messing up the wiki text. For example:
* one
* <span style="line-height: 1.5em;">three</span>
* two
* three
* four
Impact
- Makes it quite difficult to reorganize lists in WYSIWYG mode, which is a common operation.
- Wiki text becomes cluttered with unnecessary HTML which also makes it harder to read and correct in wiki text mode. Have to use erase formatting a lot if you want to fix it - or manually and painfully delete it.
--
LeilaPearson - 04 Apr 2014
Confirmed this occurs in both 1.1.9 and trunk.
--
LeilaPearson - 04 Apr 2014
This is an issue with the
TinyMCE editor component. We could possibly update to TinyMCE 3.5.10 to see if that resolves the issue. The 4.x release is not compatible with Foswiki.
http://www.tinymce.com/
--
GeorgeClark - 08 Apr 2014
You're right. I can reproduce the issue with the unexpected indentation on both the TinyMCE 4.x and 3.x demo pages. So it doesn't look like there's a fix. I guess I need to report the issue to them.
The thing I don't see there but I do see on foswiki is the problem with the span being applied to items.
--
LeilaPearson - 12 Apr 2014
The example above also produces odd HTML. The HTML looks like this:
<ul>
<li>one<li><span style="line-height: 1.5em;">three</span></li></li>
<li>two</li>
<li>three</li>
<li>four</li>
</ul>
Note that the copy of list item "three" is nested inside list item "one" after my copy-paste + outdent operations.
I can't reproduce this on the Tiny MCE 3.x demo page, so it seems like an upgrade to
TinyMCE 3.5.10 may fix this problem as well as the span problem.
--
LeilaPearson - 12 Apr 2014
Setting to Waiting for Release. This is Fixed in 1.2 and tinymce update.
--
GeorgeClark - 22 Feb 2015