Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#25352 closed defect (bug) (maybelater)

WYSIWYG list issue with Firefox

Reported by: mch0lic's profile mch0lic Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6.1
Component: TinyMCE Keywords:
Focuses: Cc:



There is some sort of the problem with creating list in Visual editor using firefox -

How to reproduce:
1) Copy the following text into notepad and then from there into visual editor using firefox:

1989 Podolefski A., Brown P. T. (ed.) Applying Anthropology: An Introductory Reader.
1996 Gardner, Katy and Lewis, David Anthropology, Development and the Post-modern Challenge. London, Sterling, Virginia: Pluto Press
2003 Oliver, Paul „The Student’s Guide to Research Ethics“. Maidenhead, Philadelphia: Open University Press.
1998 Ferraro G. „Anthropology: An Applied Perspective“

2) Make sure you're on visual editor tab, select all text and click order list button.
3) You should get similar outcome as seen in the screenshot "after"

Attachments (1)

issue.png (121.0 KB) - added by mch0lic 10 years ago.

Download all attachments as: .zip

Change History (7)

10 years ago

#1 @wycks
10 years ago

This is a TinyMCE issue, you need to add spaces between the lines for multiselect to work(your example also does not work in Chrome on the latest TinyMCE version, though it does for the WP version).

#2 @mch0lic
10 years ago

At the moment it works with Chrome and Safari without adding new lines. Its odd that TinyMCE/Editor is not working in the same way on all browsers.

#3 @knutsp
10 years ago

Tested this on 3.7-alpha, using post-new.php, Visual editor, from a Windows client:

Chrome 29: 4 items of a list, two lines each, created
Firefox 23: One item of a list, with eight lines, created
Internet Explorer 9: One item of a list, with eight lines, created
Opera 15: 4 items of a list, two lines each, created
Safari 5.1: 4 items of a list, two lines each, created

This confirms mch0lic's report, adding that it also fails with IE.

#4 @azaozz
10 years ago

Confirmed. Welcome to the wonderful world of browser inconsistencies in contenteditable mode :)
(Note: this is a minor bug compared to WebKit inserting spans with text formatting on executing execCommand('createUnorderedList') and createOrderedList.)

Creates 4 list items in all browsers when each line is a paragraph, i.e. has two line breaks between the lines that are converted to <p>s on pasting and then to a list. Not sure what the proper behavior should be. Generally paragraphs are converted to separate list items, but the example is one paragraph with some <br>, so seems it should create one list item.

It's worth it opening a ticket on TinyMCE's bug tracker so the behavior can be normalized for all major browsers.

Last edited 10 years ago by azaozz (previous) (diff)

#5 @azaozz
10 years ago

  • Component changed from Editor to TinyMCE
  • Keywords close added
  • Milestone Awaiting Review deleted

Needs to be handled upstream.

#6 @SergeyBiryukov
10 years ago

  • Keywords close removed
  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.