Set JS
Question
I thrilled to GetHtml, GetCss are GetJs. Is it possible SetHtml, SetCss and SetJs like above functions?
Answers (3)
You have these https://grapesjs.com/docs/api/editor.html#setcomponents https://grapesjs.com/docs/api/editor.html#setstyle no methods for js, it only can be a result of custom components
Thanks @artf setcomponents and setstyle work well.
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #921
[QUESTION] Select and focus an html element from a panel button
Hi everyone, Is it possible to set focus in a section html with Grapes, like as an anchor? I have a panel button and it just select the sec...
Issue #903
How to access "assets" like we have getHtml() and getCss().
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #630
(question) Is it possible to set categories dinamically?
Thanks for your component, I like it very much. I have some dinamic blocks (I have tabs and when I change tab, I add group of blocks and re...
Issue #981
[Question] Set "production" mode
Hi. Like the "Preview" mode, i'm like to show only the canvas (without bars on the side/top), without the eye icon at corner. Has any "prod...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.