Replies: 1 comment 3 replies
-
Hey @SintoDema what do you mean "not worked for me"? What change did you make? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We need an option to update the style of a template using the Import option provided by GrapesJS Editor. Already we have an import template option and it is working in the case of HTML. But while we import a set of style code
<style>...</style>
it's not properly importing to Editor. I have raised an issue on this, but due to lack of time to fix this issue, I am asked to open a Product Requirement. Not sure whether this is the place to add.What is the current behavior?
After removing a style from the Import modal, it does not get reflecting in the editor. No issues when we remove the HTML element and importing the code.
What is the expected behavior?
After importing CSS(adding/removing/updating) using the Import option, it should reflect in the editor.
Are you able to attach screenshots, screencasts, or a live demo?
Yes, here is a demo link, and that its the demo link of the GrapesJS itself.
Grapesjs Demo
Video: https://www.awesomescreenshot.com/video/4985996?key=d6919e1431a0774cb65b25330fcb17e3
Describing current issue
While creating a new template using GrapesJS, I came across a scenario that, when we try to import CSS from the import modal it does not get reflected in the editor.
Then I checked the template & the style issue was still there. So I again opened the Import modal to confirm that the style is not there & I removed it properly. I saw that the style I removed was still there inside the style tag. I tried to remove that multiple times and import it. It was not removed from the editor. It was there in the import modal once I again open that.
Here is the solution that is currently provided. But not worked for me.
https://github.com/artf/grapesjs-preset-webpage/blob/3e5a9e12998c9a32b6f1199953084163678e6c17/src/commands/openImport.js#:~:text=btnImp.onclick%20%3D%20e,%7D%3B
Beta Was this translation helpful? Give feedback.
All reactions