[wp-trac] [WordPress Trac] #3584: Quicktags should be conditionalised on html_type == text/html

WordPress Trac noreply at wordpress.org
Mon Feb 12 06:08:49 UTC 2024


#3584: Quicktags should be conditionalised on html_type == text/html
----------------------------+----------------------
 Reporter:  nickshanks      |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  2.0.7
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+----------------------

Comment (by pereverzevzmjqy3):

 It seems like you're encountering issues with the edToolbar() function,
 specifically the use of document.write() which is not allowed in XHTML,
 causing problems when posting new content.

 To resolve this, you suggest conditionalizing the inclusion of quicktags
 by checking if option_html_type is equal to "text/html". If it's not, then
 quicktags should not be included.

 Implementing this change would ensure that quicktags are only included
 when the HTML type is "text/html", preventing issues with XHTML compliance
 and document.write() usage.

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


More information about the wp-trac mailing list