Code editor Support
Question
I am wondering is it possible to have a code editor in GrapesJs, if will be much better for frontend developer. And if it support sysn scroll will be better, e.g. when you right click the element, the code will auto scroll and hightlight the code block related to the element.
Answers (3)
And an option we can disable the style manager, since in the real world end user if not a technical guy , he will not understand css style and the style is too complicated, and for the frontend developer, without a code editor, it is too hard to work, if you want a real and good designed responsive page, these inline style will cause a lot of problems. There are a lot of good enough frame to avoid using any inline style e.g. tailwindcss.
Further more, I just want to set some rule in particular level of tag it will be selectable and visually editable, but beyond the rule the visual won't change it, alternately we can just select it in the code editor and directly edit by row code. E.g. only the root .page under body can be drag to sort and droppable.
This might be a good candidate for a plugin https://grapesjs.com/docs/modules/Plugins.html
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1472
[QUESTIONS] Custom Code block and JS
Wondering if there is a limitation or is it actually possible to create a block that allows the user of the editor to write custom javascri...
Issue #3558
FEAT: Support Content-Security-Policy
To reduce the possible attack surface if the editor is used in "hostile" environments (e.g. in SaaS platforms) support for CSP is required....
Issue #2832
Replace/Override template for CategoryView?
Hi, Wondering if it's at all possible to use custom HTML to replace the CategoryView's template when adding a new block? I've tried a coupl...
Issue #1951
[QUESTIONS] change or add event on add component from block
is it possible ?, change the drag and drop event to on click when adding a new component, I want to add components by clicking the block th...
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.