GrapesJS Issues

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

829 issues found

🔍 question
#1327July 31, 2018by ezequiel-thalamus2 answers
0 reactions

[QUESTIONS] Replacing selected text and getting html

Hi! Im trying to replace selected text with a code (random code). It's works, i can see the code, but when i do editor.getHtml() not. If i deselect the component (selecting another one) the change takes effect. Thanks!

artf

The content of the model is actually updated once you blur from the editable component, so when you call getHtml it's just not yet there

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.

#1326July 31, 2018by CCsoh1 answer
0 reactions

Is it possible to disable move and delete bar

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

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.

#1323July 27, 2018by jvillena2 answers
0 reactions

Loading HTML content inject ids belongs to styles

@artf When I load the html content, this is including in all the components a random identifier that in your examples "Websites" and "Newsletter" I don't see them. So How I can force to keep my stylesheet and don't use random identifiers in all the components? I'm asking you this question because if I change the ident...

jvillena

@artf I've just fixed I was including the variable avoidInlineStyle: true, and it has to be avoidInlineStyle: 0

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.

#1318July 25, 2018by Abhisheknanda13444633 answers
0 reactions

Question: How to enable Event of mouse to increase value of input

hi @artf I want to know Is there any way to enable input mouse scroller in style manager as you can my screenshot. i want to initalize scroller to increase the values on click and drag .Thanks

artf

Like the one which already exists?

Abhisheknanda1344463

Yes @artf i want to initialize same which is already exist.Thanks

artf

Ok... the feature is active by default on all number inputs

#1313July 24, 2018by krunal0392 answers
0 reactions

[Question] Set traits value from html on component load

I have custom component and want to set trait default values from html. below is html rendered by component. traits I am trying to set for are image url, anchor url and h4 content.

artf

By default, the initial value of the trait corresponds to component's attribute. In the case of changeProp use, you should pass the initial value via data-gjs-* attribute

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.

#1311July 24, 2018by inventorbit2 answers
0 reactions

[Question]: Initializing Canvas Scripts and Styles dynamically

Hello Grapejs team, Thanks for this wonderful project saved my time and so far I had great experience with integration and your community support. I want to load Canvas Styles and Scripts after the page is loaded from DB (Rest API) canvas: { styles: ['https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.mi...

artf

Hi @inventorbit for such a case you should manipulate directly the canvas document

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.

#1307July 23, 2018by Abhisheknanda13444633 answers
0 reactions

Question: 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

#1297July 19, 2018by alperenuzun2 answers
0 reactions

[QUESTION] Is Multiple trait possible to do editable img and <a> tag in the table component?

Hi Artur, I had forgot to say i am using latest version, i am sorry for that. I want to add a plugin for editable social media icons, image url and link href in component settings. Something like this: I create a new trait type and i want to add multiple editable input something like above image. I tried to create inp...

nojacko

@alperenuzun Did you figure this one out?

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.

#1289July 16, 2018by acamenhas2 answers
0 reactions

data-gjs-custom-name question

I've created a simple block content with a custom data-gjs-custom-name = "test". When i save the page i cant see those attributes on the generated HTML. Then, when i load that HTML, those custom components appears as BOX. Is there any way to keep those attributes?

artf

No, those attributes are only used for the import. Please, learn how to store correctly your templates https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates

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.

#1286July 15, 2018by Barahten3 answers
0 reactions

[Questions]: Download default assets in manager on init

I'm trying to implement an example as in a demo, namely: when clicking on a background image installation, a window pops up offering you to download files or select from already downloaded ones. Uploading to the server I successfully implemented, the files are loaded, saved in the desired folder, after they appear in...

artf

Hi @Barahten please try to provide a live demo for your issues, just can't help you without seeing how you set up the editor.

Barahten

@artf, work on real server http://gjs.barahten.com/ Pen - https://codepen.io/barahten/pen/QBygdY The script works a little strangely. On the local server it works by uploading files to the folder but does not work on adding to the manager,...

artf

Regarding the first pointBut when updating the page and repeating all the above manipulations, the asset manager (the one on the left is empty). First of all, update the library, 0.12.17 is too much outdated actually BTW, just to give you...