You are here: Foswiki>Tasks Web>Item12846 (05 Jul 2015, GeorgeClark)Edit Attach

Item12846: Unexpected indention for bullet copy-paste

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: TinyMCEPlugin
Branches:
Reported By: LeilaPearson
Waiting For:
Last Change By: GeorgeClark
Steps to reproduce
  1. In WYSIWYG mode, create a bulleted list with a few single-word items as an example. For example:
    • one
    • two
    • three
    • four
  2. Double click on - for example the word "three" in the list to select it.
  3. CTRL+C to copy the text
  4. Insert the cursor after "one"
  5. 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
 

ItemTemplate edit

Summary Unexpected indention for bullet copy-paste
ReportedBy LeilaPearson
Codebase 1.1.9, trunk
SVN Range
AppliesTo Extension
Component TinyMCEPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r7 - 05 Jul 2015, GeorgeClark - This page was cached on 31 Jul 2016 - 11:42.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License