Make WordPress Core

Opened 22 months ago

Last modified 16 months ago

#21157 new defect (bug)

disapearing class=anything when ctrl+c & ctrl+v in tinymce editor

Reported by: thomask Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.4
Component: TinyMCE Keywords:
Focuses: Cc:



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 (2)

comment:1 azaozz16 months ago

  • Cc spocke added

comment:2 azaozz16 months ago

  • Milestone changed from Awaiting Review to Future Release

Confirmed that when pasting Lorem class=anything Ipsum and Lorem class="anything" Ipsum the class=... 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).

Note: See TracTickets for help on using tickets.