Hi @artf is there any Way to stop dynamically generating classes on reloading editor. let say when i add my custom class i.e "my_class" to two elements. whenever i am adding style to the element, it is reflecting in both the elements. but after reloading editor it generates class dynamically again. I want to stop that...
AnkitKachhadiya
hey @Abhisheknanda1344463 Can you try this code editor.CssComposer.getAll().reset();
Abhisheknanda1344463
@AnkitKachhadiya Hey I want to Stop dynamic classes Which is generatred every time when you refresh page.
artf
@Abhisheknanda1344463 This should explain you some stuff https://jsfiddle.net/szLp8h4n/267/ Please @Abhisheknanda1344463, next time, create a demo for this kind of questions
H @artf, I have a pitfalls in the middle of saving the HTML content. Right now we have a popup modal dialog where I can select some special text and inject on the canvas in the selected element. The issue is when saving the HTML content the changes are not reflected on it. It likes I have to refresh or update the mode...
BlazedCode
Hi @jvillena. Would you mind sharing some of your code please? I'm attempting to do the same thing but I just can't figure it out. I keep adding <span> tags as "placeholders" to insert the variable values, but they are always added to the...
jvillena
I've just solved. I had to render the DomComponents after applying the changes. The solution was:
artf
No, with this editorRTE.DomComponents.render() you're triggering the render of all component, please read carefully about Components, by looking at stuff like this editorRTE.getSelected().view.$el[0].innerHTML = value I think you just didn...
Sorry, there's a problem that's been bothering me。 I created a component for chart. I write configuration items in script And I want the user to be able to modify the configuration items The problem is I can't get the chart
artf
You're completely misunderstanding the concept of JS in Components. Read the basics https://grapesjs.com/docs/modules/Components-js.html#basic-scripts and search in issues before posting a new one
lock[bot]
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.
Hi, artf I would like to add some new block with custom slider when user dragged the slider into canvas need to show some popup with available options in flex slider and when user select that need to show the flex slider how can I achieve this. please help me, sir.
artf
You need to create a custom component https://grapesjs.com/docs/modules/Components.html https://grapesjs.com/docs/modules/Components-js.html
lock[bot]
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 had some problems loading templates. It did not work both the storage in a .json file and the processing in a mysql database. my loading.php is very simple for testing: <?php $ str = filegetcontents ('database.json'); echo $ str; ?> The string was split into individual characters and packaged in an array. After adju...
I had some problems loading templates. It did not work both the storage in a .json file and the processing in a mysql database.my loading.php is very simple for testing:The string was split into individual characters and packaged in an arr...
suresh5
I am not able to load template reply Can you help me with json format how to send ?
Hi @artf the render of blocks outside the main editor added in v 0.14.5 isn't working with gjs-preset-webpage plugin, otherwise it works like a charm. Do you have any idea why this would be an issue? Thank you in advance!
artf
I think it's because the preset force the rendering inside its custom panels and, as the element of blocks is unique, is probably moved from the specified position. I close this issue as it has nothing to do with the core but I'd be glad t...
lock[bot]
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.
hi,sorry,My English is poor. I want to add a new trait for a block . how should i do it? for example: add a trait about xaxis for the chart.
lorrandavid
If you want to create a new type of trait you gonna need to do it first at the Trait Manager then apply it to your block. You can read more about it here https://grapesjs.com/docs/modules/Traits.html#define-new-trait-type
lock[bot]
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 am on the latest version of Grapejs and am able to recreate this issue on the demo currently. The issue I am having is when I select something from the Layer Manager. It highlights the component properly, but it doesn't allow me to delete the selected component. I would like to be able to highlight a component from...
artf
Will be fixed in the next release
lock[bot]
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.