Opened 5 months ago

Closed 5 months ago

#23010 closed defect (bug) (fixed)

In WebKit TinyMCE may remove all spans when merging nodes with backspace

Reported by: azaozz Owned by: azaozz
Priority: normal Milestone: 3.5.1
Component: TinyMCE Version: 3.5
Severity: normal Keywords:
Cc:

Description

To reproduce:

  • Make a test post with couple of paragraphs.
  • Add some text colors (to a word or whole sentence). The colors are added as <span style="color:..."> around the selected text.
  • At the end of the post, press Enter and then immediately press backspace.

At this point all text colors disappear. Looking at the html, all spans have been stripped from the content. Caused by the fix for WebKit quirk with backspace (WebKit inserts lots of junk when merging the nodes on backspace).

Attachments (1)

23010.patch (451.7 KB) - added by azaozz 5 months ago.

Download all attachments as: .zip

Change History (6)

  • Milestone changed from 3.6 to 3.5.1

This was fixed upstream: https://github.com/tinymce/tinymce/commit/113bd1ceaef1e1de5f2fdf54633d58424817182c

This is related to #22766 and will fix it as well. Thinking we should backport that patch and update TinyMCE in 3.5.1 (moving to 3.5.1 milestone for consideration).

azaozz5 months ago

23010.patch​ contains the latest git version of TinyMCE.

In 23192:

TinyMCE: update to latest source including the WebKit backspace fix, see #23010

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 23217:

TinyMCE: update to latest source including the WebKit backspace fix, fixes #23010, fixes #22766 for 3.5

Note: See TracTickets for help on using tickets.