[wp-trac] [WordPress Trac] #31890: Link to existing content added in Text Editor disappear after switch to Visual editor and back

WordPress Trac noreply at wordpress.org
Thu Apr 16 19:16:10 UTC 2015


#31890: Link to existing content added in Text Editor disappear after switch to
Visual editor and back
-------------------------------------------------+--------------------
 Reporter:  beda69                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.2
Component:  Editor                               |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing 2nd-opinion  |     Focuses:
-------------------------------------------------+--------------------

Comment (by azaozz):

 Replying to [comment:12 netweb]:

 The logic for showing the text field when opened from the Visual editor
 is: no selection or only text selected. No text field when a linked image
 is selected.

 The patch works partially. To always show the Link text field, it needs to
 be changed to `inputs.wrap.addClass( 'has-text-field' );`, not removed. It
 currently doesn't load selected text in the Link Text field and cannot
 "edit" a link, i.e. load both the text and URL when the caret is in a
 place wrapped in an <a> tag.

 In that terms, not sure if this is a desirable change. We can add all
 these features to match the Visual editor, but not in RC. Also that will
 be quite different from the rest of the Text editor.

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


More information about the wp-trac mailing list