#21157 closed defect (bug) (fixed)
disapearing class=anything when ctrl+c & ctrl+v in tinymce editor
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.4 |
| Component: | TinyMCE | Keywords: | |
| Focuses: | Cc: |
Description
type
Lorem class=anything Ipsum
anywhere. Copy the text and paste it to the WP's WYSIWYG editor. The result is just
Lorem Ipsum
I have tried it with tinymce demo on their site and it works normaly, so it seems that only wp editor is affected.
The same wrong result is with class="anything", when using spaces around equal symbol (class = anything), it works normaly. Seems like some poorly written attemp to remove classes from pasted text (it does not affect id or other tag parameters i have tested)
P.S.: i am using Chrome if it makes some diference
Change History (4)
Note: See
TracTickets for help on using
tickets.
Confirmed that when pasting
Lorem class=anything IpsumandLorem class="anything" Ipsumtheclass=...bit is removed. Works properly if these strings are in the content or were added in the Text editor. Seems like a bug in TinyMCE's 'paste' plugin that ideally will be fixed upstream (patches welcome).