Skip to content

Cannot import template with <scrip> #36

@nuvolettablu

Description

@nuvolettablu

When importing a template that contains a script, the script portion is not imported. Even when using the "code" module, the result is the same.

This is despite enabling the allowScripts configuration option when initializing your GrapesJS editor.

const editor = grapesjs.init({
    ... // the rest of your GrapesJS config
    allowScripts: 1,
});

Any ideas?
Thanks.
S.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions