Replies: 2 comments 2 replies
-
There is the |
Beta Was this translation helpful? Give feedback.
2 replies
-
more follow up... i was able to get it to accept the script tag using this._editor = grapesjs.init({
// ...
parser: {
optionsHtml: { allowScripts: true }
}
}) might have been referencing some old code trying to go through optsHtml? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried creating script block using the built in component (doesn't allow drop), but what I am really after is being able to add dynamic javascript (stored in db, not in a file) to the editor. Using the includeScript when initializing the editor does not seem to work (when viewing the code). I understand the security reasons for not allowing script tags... but is there a way to do it? (I don't necessarily need to be able to edit the script in the editor... just include it as part of the document). I have considered making a custom tag that will hold the script source and using the view to render it in the editor, but was hoping for a more direct approach.
Beta Was this translation helpful? Give feedback.
All reactions