Opened 10 years ago
Closed 10 years ago
#25352 closed defect (bug) (maybelater)
WYSIWYG list issue with Firefox
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.6.1 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
Hi,
There is some sort of the problem with creating list in Visual editor using firefox - http://s23.postimg.org/5utsfh99n/issue.png.
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" http://s23.postimg.org/5utsfh99n/issue.png
Attachments (1)
Change History (7)
#2
@
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
@
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
@
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.
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).