Browse Source

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.
pull/3080/head
Aadil Mehraj 6 years ago
committed by GitHub
parent
commit
138591239b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/modules/Storage.md

2
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

Loading…
Cancel
Save