Issue #6202πŸ’¬ AnsweredOpened Oct 9, 2024by klipto-inc0 reactions

Javascript CDN not working on grapejs canvas

Quick answerby artf

@klipto-inc please create the bug report with a proper reproducible live demo

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? 129 Reproducible demo link https://grapesjs.com/demo Describe the bug const newEditor = grapesjs.init({ fromElement: true, // Allow components from HTML container: "#editor", canvas: { scripts: [ "https://cdn.jsdelivr.net/npm/[email protected]/dist/preline.min.js", ], }, height: "100vh", plugins: [ gjsPresetWebpage, GjsBlockBasic, gjsForms, pluginTooltip, customCodePlugin, pluginImageEditor, grapesjsClick, pluginPreset, pluginStyleBg, styleFilter, pluginStyleFlex, pluginStyleGradient, pluginnavbar, //...

Answers (2)

artfβ€’ Oct 9, 2024

@klipto-inc please create the bug report with a proper reproducible live demo

GJS Helperβ€’ May 17, 2026

The issue you're encountering with Preline.js not working on the GrapesJS canvas, despite being included via canvas.scripts, is a common timing problem with UI libraries that rely on DOMContentLoaded for initialization. Root Cause Many JavaScript UI frameworks and libraries, including Preline.js, a...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.