Opened 11 years ago
Closed 11 years ago
#28772 closed defect (bug) (fixed)
Clear formatting button and <!-- more --> tag
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.0 | Priority: | normal |
| Severity: | normal | Version: | 3.9 |
| Component: | TinyMCE | Keywords: | needs-patch |
| Focuses: | ui, javascript | Cc: |
Description
I made a small video showing the problem.
http://www.youtube.com/watch?v=_HeUrV-7H9U
Reproduce the bug.
- Paste into Text TinyMCE tab following text:
Some text before more tag. More tag is next. <!--more--> Text placed after more tag.
- Switch to Visual tab.
- Select all text — cmd + a (ctrl + a).
- Press "Clear formatting" button.
- Switch to Text tab and you see:
Some text before more tag. Wordpress running without any plugins or dirty themes :) <img title="Read More..." src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" data-wp-more="" data-mce-resize="false" data-mce-placeholder="1" /> Text placed after more tag.
Attachments (1)
Change History (9)
#1
@
11 years ago
- Focuses administration removed
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.0
- Version changed from 3.9.1 to 3.9
#2
@
11 years ago
- Keywords has-patch added; needs-patch removed
I'm not sure if this can be fixed some other way, but overwriting the TinyMCE defaults for "remove format" works. This is just a copy of the defaults, but it doesn't remove the class for '*', except for the rules above. So it won't remove the class for img and div.
#3
@
11 years ago
So @azaozz suggested moving everything to data-wp- instead of using a class. That's probably the way to go. :)
#4
@
11 years ago
Hm... You are so smart and fast, @avryl! I am not very well versed in Javascript :)
This ticket was mentioned in IRC in #wordpress-dev by DrewAPicture. View the logs.
11 years ago
Note: See
TracTickets for help on using
tickets.
Thank you for finding this! :) This is actually a problem with wpviews as well (e.g. a gallery preview). It looks like all classes are removed and the styling becomes a mess. They do still convert when switching to text mode though.