Allow <script> tags in editor

20 views
Skip to first unread message

JH

unread,
Nov 29, 2022, 3:38:35 PM11/29/22
to Ajax.org Cloud9 Editor (Ace)
Hey everyone, I'm using this package for an embedded editor on a website. We'll be adding multiple scripts within one block. Is there a way to whitelist the opening/closing <script> tag so it doesn't throw an error?

Thanks!

Harutyun Amirjanyan

unread,
Nov 29, 2022, 3:39:52 PM11/29/22
to ace-d...@googlegroups.com
Are you using js or html mode? it shouldn't throw errors in html mode

JH

unread,
Nov 29, 2022, 3:54:51 PM11/29/22
to Ajax.org Cloud9 Editor (Ace)
I'm using JS mode. I'll give html mode a test.

JH

unread,
Dec 1, 2022, 8:04:33 PM12/1/22
to Ajax.org Cloud9 Editor (Ace)
Thanks for the tip. Any way to validate the javascript when in HTML mode? If not, I'll see if I can just strip out the <script> tags before it runs the linter
Reply all
Reply to author
Forward
0 new messages