GrapesJS Issues

3,464 parsed GitHub issues 370 solved · 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

🔍 outdated
#1308Jul 23, 2018by manishkumaruit1 answer
0 reactions

I am not able to insert icon and its class in html element

bm.add('test-block', { label: "Icons", category: "Prismanote Blocks", content: { script: function () { var d = window.parent.window.modalJ; d.setTitle('ICONS'); d.setContent( <style> .tabs{ width: 600px; display: block; margin: 0px auto; position: relative; padding: 0px !important; } .tabs .tab{ float: left; display:...

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.

#1307Jul 23, 2018by Abhisheknanda13444633 answers
0 reactions

To stop dynamically generated classes in grapes Editor

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

#1306Jul 23, 2018by jvillena3 answers
1 reactions

Inserting text in an canvas element is not updated on the HTML content after saving it.

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...

#1305Jul 23, 2018by ionic6662 answers
0 reactions

About changing the configuration items on the chart

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.

#1304Jul 23, 2018by sanskipk2 answers
0 reactions

"CanvasView.frame.el.contentDocument is null" in angular4

Hi I integrated grapejs with angular4.I added custom button.After click on edit button throwing error:- TypeError ​ columnNumber: 7 ​ fileName: "http://localhost:4200/vendor.js" ​ lineNumber: 78800 ​ message: "CanvasView.frame.el.contentDocument is null" ngOnInit() { console.log('oninit') this.editor = grapesjs.init({...

artf

There is a very similar issue #1288 please discuss it here. BTW I'd need a minimal live demo for such a case

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.

#1303Jul 23, 2018by aj00222 answers
0 reactions

I need to add carousel block with flex slider

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.

#1302Jul 21, 2018by michaelreckendorfer3 answers
0 reactions

Invalid JSON String - Load Data

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...

artf

https://grapesjs.com/docs/modules/Storage.html#setup-the-server

suresh5

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 ?

#1300Jul 20, 2018by FrciSmrci2 answers
0 reactions

Render blocks outside main editor not working

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.

#1299Jul 20, 2018by ionic6662 answers
1 reactions

Add a new trait

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.

#1298Jul 19, 2018by blairpanek2 answers
0 reactions

Internal Editor not deleting component when selected from Layer Manager

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.

Browse all topics