[wp-trac] [WordPress Trac] #57575: Editor: Introduce HTML Tag Processor

WordPress Trac noreply at wordpress.org
Fri Feb 3 22:02:58 UTC 2023


#57575: Editor: Introduce HTML Tag Processor
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  azaozz
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:
  merge has-testing-info                         |  performance
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  has-patch has-unit-tests gutenberg-merge => has-patch has-
     unit-tests gutenberg-merge has-testing-info


Comment:

 Though this has already been merged, I'm adding example test instructions
 here to help test contributors reviewing this during 6.2's prerelease
 cycle.

 **Please do not report bugs on this ticket, but submit as a
 [https://core.trac.wordpress.org/newticket new Trac ticket] for
 appropriate tracking and triage.**

 == Testing Instructions

 === Steps to Test
 1. Install the
 [https://gist.github.com/ironprogrammer/372bfcbf71ba1ea8af2a993fd602567d
 `WP_HTML_Tag_Processor` test plugin] (installation info is in the plugin's
 header).
 2. Enable the plugin.
 3. Create a post, and insert a paragraph block. Add some text.
 4. In the paragraph text, add hyperlinks to internal and external URLs,
 then publish the post.
 5. View the post.
 6. Observe the rendered output, as well as the modified markup (via View
 Source).

 === Expected Results
 - ✅ External links in the paragraph are formatted bold with contrast-
 colored text, and prepended with the
 [https://developer.wordpress.org/resource/dashicons/#external "external"
 dashicon].

 === Supplemental Artifacts
 [[Image(https://cldup.com/EJ0VQSmbwa.png, 75%)]]
 ''Figure 1: Example output from test plugin.''

 === Additional Information
 Testers wishing to "tinker" with the HTML Tag Processor API might also
 consider trying this
 [https://gist.github.com/ironprogrammer/6cb0d2a07b937c819bde2c3ff5ec4d34
 "sandbox" plugin], which provides fast visual feedback of the new feature,
 and demonstrates some ways in which the API can be used.

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


More information about the wp-trac mailing list