murdercode / Nova4-TinymceEditor

A TinyMCE Field for Laravel Nova 4
MIT License
15 stars 12 forks source link

Javascript filtered #17

Closed Joemires closed 1 year ago

Joemires commented 1 year ago

Hey I noticed javascript codes are filtered when saving or rendering into the editor, how can I enable javascript usage in the editor

murdercode commented 1 year ago

I'm pretty sure Tiny goes and removes any javascript code by default, I don't think it's possible to do that without an ad hoc extension.

Joemires commented 1 year ago

I'm pretty sure Tiny goes and removes any javascript code by default, I don't think it's possible to do that without an ad hoc extension.

Tiny documentation shows that you can turn off the filter for some tags

murdercode commented 1 year ago

I'm pretty sure Tiny goes and removes any javascript code by default, I don't think it's possible to do that without an ad hoc extension.

Tiny documentation shows that you can turn off the filter for some tags

Can you link it? If it goes under settings, you can simply override your by publishing from vendor:publish

Joemires commented 1 year ago

image https://www.tiny.cloud/docs/tinymce/6/content-filtering/#protect

Joemires commented 1 year ago

I will try testing it out on my end and will send a PR if everything works fine

murdercode commented 1 year ago

Thanks mate! Here's the release: https://github.com/murdercode/Nova4-TinymceEditor/releases/tag/v1.2.0 Tested in local and works ;)