GrapesJS / GrapesJS/components-custom-code
Cannot import template with <scrip>
- Langage dominant
- TypeScript
- Étoiles
- 81
- Forks
- 47
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Reproduce the import through the GrapesJS editor initialization with allowScripts: 1, both with the default configuration and the code module. Trace how the imported template handles its script portion, and consider the issue resolved when the script is preserved during import under the documented configuration.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100