[wp-trac] [WordPress Trac] #56893: Unnecessary line breaks added by the code editor that breaks JavaScript

WordPress Trac noreply at wordpress.org
Sun Oct 23 20:43:45 UTC 2022


#56893: Unnecessary line breaks added by the code editor that breaks JavaScript
--------------------------+------------------------------
 Reporter:  sweetheatmn   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.0.3
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by sweetheatmn):

 Replying to [comment:3 sajjad67]:
 > Thank You for noticing it @sweetheatmn. But the editor is not the best
 place to put Inline JS Code, and that's why it was not designed to escape
 the inline JS!! But it should escape!! I agree. @SergeyBiryukov What is
 your thought? Do we add an escape for the editors if it's wrapped around
 `<script></script>`

 You are welcome, This is a glitch and has to be sorted asap, JS is
 everywhere in embed codes and there is no logic in breaking an existing JS
 code

 This also has to be sorted on the function that filters the content and
 add unnecessary paragraph tags

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


More information about the wp-trac mailing list