[wp-trac] [WordPress Trac] #42059: Editor: preview for embedding from URL breaks on switching Text to Visual when selected

WordPress Trac noreply at wordpress.org
Thu Oct 5 16:38:22 UTC 2017


#42059: Editor: preview for embedding from URL breaks on switching Text to Visual
when selected
-------------------------------------+-----------------------
 Reporter:  azaozz                   |       Owner:  biskobe
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.9
Component:  Editor                   |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by biskobe):

 Things the patch fixes:

 * Pasted URLs are now treated as blocks. If the cursor is inside one of
 them, the cursor will be pushed to the start/end of the URL, like HTML
 tags and shortcodes are treated.
 * Refactored underscore.js usages to use native JS
 * Marking the selection markers as `data-mce-bogus` as early as possible,
 so they are removed from the content if something happens down the line in
 the script.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42059#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list