Closed desilvaNSP closed 7 years ago
Sure, you can update the entire content with setComponents
editor.setComponents('<div class="test">Hello</div><style>.test{color:red}</style>');
or just only the style
editor.setStyle('.test{color:blue}');
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I have loaded html template into editor initialy
script
how I update editor content with new template by replacing existing template. Is there any quick method for that in grapejs. I use select option to load html template.I want to dyanamically apply html template into this editor content.
Thanks in advance.
we need documentation for this library..this is awesome web editor.