[wp-trac] [WordPress Trac] #28044: TinyMCE remembers pasted text while showing fixed text?
WordPress Trac
noreply at wordpress.org
Sun Apr 27 11:57:00 UTC 2014
#28044: TinyMCE remembers pasted text while showing fixed text?
----------------------------------------+-----------------------------
Reporter: gallantfish | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.8.3
Severity: normal | Keywords:
Focuses: javascript, administration |
----------------------------------------+-----------------------------
This is a follow-up to #14218.
My editor KEEPS adding span tags with line-height attributes and I
narrowed it down to some hidden original text preserved somewhere even
though a clean and correct version is shown in the TEXT version/tab.
1) Paste text from TextEdit.app in the visual editor (with single-line
titles made with b tags)
2) Select the title (b tag, entirely, partial, or the whole line with
triple-click)
3) Do ANYTHING with that, and the span will be added. Either removing the
B or deleting the selection.
In other words, it's NOT code brought form TextEdit.app, BUT code added to
text which CAME from TextEdit.app.
I say it's some remembered version of the pasted text the extra span tags
are NOT added if the bolded text was entered manually in the TEXT tab.
When pasted from TextEdit.app (didn't test other apps) the text shows
FINE, even shwitching back and forth between VISUAL and TEXT tabs, even
doing changes somewhere else. It always returns to the right clean
version.
At least not I KNOW how to keep bringing the formatting from Mac
TextEdit.app (Wordpress and the Mac OS keep the text beautifully clean
this days) without ruining it later in the WP editor. (I used to think it
was WP to blame)
It looks like TinyMCE REMEMBERS the span with font-width: bold attribute,
but it shows it as b tag instead, so when you make any change to the text,
the change is made to the span tag, rather than to the b tag.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28044>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list