Make WordPress Core

Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#21157 closed defect (bug) (fixed)

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

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

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)

#1 @azaozz
14 years ago

  • Cc spocke added

#2 @azaozz
14 years ago

  • Milestone Awaiting ReviewFuture 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).

#3 @iseulde
12 years ago

  • Resolutioninvalid
  • Status newclosed

I can reproduce this in WP 3.8, but not in 3.9. Looks like TinyMCE 4.0 fixed this.

#4 @SergeyBiryukov
12 years ago

  • Milestone Future Release3.9
  • Resolution invalidfixed
Note: See TracTickets for help on using tickets.