Opened 10 years ago
Closed 5 years ago
#31642 closed defect (bug) (worksforme)
Editor Not Formatting List Properly
Reported by: | semrocc | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1.1 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Change History (8)
#2
@
9 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
#3
@
9 years ago
- Resolution worksforme deleted
- Status changed from closed to reopened
Unfortunately this has not been fixed and is a constant headache. The same scenario happens when highlighting text and selecting blockquote. The editor does not seem to know what to do.
#6
@
9 years ago
In that case I'd suggest opening an issue for TinyMCE: https://github.com/tinymce/tinymce/issues and giving them as much information as you can: browser used, any errors in the console, etc.
Also, when you're pasting plain text (as you're copying from a plain text editor), you should toggle the "Paste as text" button. That would produce better results.
#8
@
5 years ago
- Resolution set to worksforme
- Status changed from reopened to closed
The "guessing" logic about how to interpret pasted content is in the TinyMCE "paste" plugin, upstream. Ideally the content will be formatted after pasting it, or written directly in the editor. Not sure if we can make this work better in WP, seems it needs fixes/changes upstream. At the same time pasting seems to be working satisfactory, especially when pasting plain text.
Closing as worksforme, feel free to reopen with ideas on how to improve the behaviour, preferably with some (pseudo) code/examples.
The only way I can reproduce this is when I create the list first, and then paste the text. That way all of the pasted content is in the first list item. This is the same behaviour as other text editors/word processors.
Perhaps this has been fixed in the meantime but if I paste the text first and then select the paragraphs and click the Ordered List button, it works properly.