From 138591239b9a98b8493db4cf6239b3fe145a3ccd Mon Sep 17 00:00:00 2001 From: Aadil Mehraj <26774310+AadilMehrajBhat@users.noreply.github.com> Date: Mon, 19 Oct 2020 13:17:38 +0530 Subject: [PATCH] fromElement is disabled while loading templates When loading the template using init config, make sure the fromElement: false is set otherwise the content within the wrapper element will override the template config. --- docs/modules/Storage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/modules/Storage.md b/docs/modules/Storage.md index 1aa3d4fa2..facbebf22 100644 --- a/docs/modules/Storage.md +++ b/docs/modules/Storage.md @@ -83,6 +83,8 @@ const LandingPage = { // ... const editor = grapesjs.init({ ... + // If set to true, then the content within the wrapper element overrides the following config, + fromElement: false, // The `components` accepts HTML string or a JSON of components // Here, at first, we check and use components if are already defined, otherwise // the HTML string gonna be used