GrapesJS / blocks-basic

Basic blocks for the GrapesJS editor
BSD 3-Clause "New" or "Revised" License
75 stars 108 forks source link

Styles not loaded when using setComponents #16

Closed keithstric closed 5 years ago

keithstric commented 5 years ago

If I set the canvas html via editor.setComponents(someHtml) the styles are not loaded. Once I drag a block into the canvas, the styles for that particular block are loaded and everything then gets the proper style.

artf commented 5 years ago

Yeah, styles are blocks specific, so if, for example, you don't drop the column block you will not see its style (which makes sense). So if you need styles from beginning you have to import them first manually