[wp-trac] [WordPress Trac] #48583: Page Jumps Disappearing when Switching in Between Visual and Code editor
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Nov 13 01:57:03 UTC 2019
    
    
  
#48583: Page Jumps Disappearing when Switching in Between Visual and Code editor
--------------------------+------------------------------
 Reporter:  Deon B        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.1
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Comment (by sabernhardt):
 @deon-b Thanks for the ticket! I see the same replacement can happen for
 empty anchor tags in 5.2 and 5.3 as well, but I found workarounds.
 So either of these, on its own line (in the text editor), would be
 replaced by the non-breaking space for an empty paragraph when switching
 back and forth:
 {{{
 <span id="empty1"></span>
 <a id="empty2"></a>
 }}}
 However, any of the options below should retain the ID/name attribute, so
 then links go directly to that paragraph (or heading).
 {{{
 <h2 id="option1">A heading with ID attribute</h2>
 <p id="option2">A paragraph with ID attribute for an anchor link to skip
 to here.</p>
 <span id="option3"></span>A paragraph with an anchor link's target at the
 beginning.
 <a id="option4"></a>Another paragraph, with an anchor tag.
 <span id="option5"></span>
 This paragraph has an anchor link's target at the beginning, with a line
 break between that and the text.
 <a id="option6"></a>
 This also adds a line break after the anchor tag and before the text of
 this paragraph.
 <a name="option7"></a>
 }}}
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48583#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list