GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#1299July 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.

#1298July 19, 2018by blairpanek2 answers
0 reactions

[Bug] 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.

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

#1296July 18, 2018by jvillena3 answers
0 reactions

Custom Rich Text Editor is not working

Hi @artf, I've just created a custom plugin of the RTE using different libraries like CKEditor 5, TinyMCE 4 or pell but all of them with the same result that the editor is losing the focus so the buttons are not applying to the text content. So on the image above if I press on Bold button then the effect is not applie...

artf

To be honest, I don't know but maybe this happening because by clicking outside you're unfocusing from the input, indeed, you should probably append those buttons inside rteToolbar which has this listener on(rteToolbar, 'mousedown', e => e...

jmtt89

How you solve this? i can't find a working example with Pell, CKEditor 5 or TinyMCE :/

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.

#1295July 18, 2018by lorrandavid3 answers
0 reactions

[Bug]: Unit select field missing on IE after click

@artf I'm currently using GrapesJS latest version (but you can reproduce this bug using the demo). Basically all you have to do is select any element, go to a property that has a unit select field and select a value, it will turn blank until you select another value again. It just happens on IE. EDIT: Changing unit wo...

artf

Which IE?

lorrandavid

It seems like it happens on IE 10 and 11. I'm not exactly sure about the build version but I'll look into it when I get home and edit this. EDIT: Currently my IE 11 is on build 11.0.9600.17843IS but I've also tried it on Windows 10 latest...

lorrandavid

Any news on this matter @artf? I can try to help you if you need

#1294July 18, 2018by FrankiYu3 answers
5 reactions

How to add category for default block manager?

@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll().reset(); removed all blocks then use plugin "grapesjs-blocks-basic" to create "Basic" but anything still removed. Or I just add a category to "gjs-blocks-no-cat", but I can't find...

AnkitKachhadiya

Hey @MooseFrankenstein Refer this codepen it might help you Codepen Demo Please Try this code:const bm = editor.BlockManager; editor.on('load', () => { editor.BlockManager.render([ bm.get('column1').set('category', ''), bm.get('column2').s...

manishkumaruit

Hi @artf , I am using your plugin and i want to use blocks in different tabs like blocks,widgets and grids but when i am using the properties of blockManager like blockManager : {appendTo: '#blocks'}. Its showing all blocks in single tabs...

FrankiYu

@AnkitKachhadiya Thanks for your help. bm.get(id).set('category', 'your own category'). It works for me. Thanks again. 👍

#1293July 18, 2018by aj00222 answers
0 reactions

Submission of contact form

Hi, artf Thanks for your great work. I would like to integrate this great editor with angular. I integrated this Angular 6 it working nicely. But i have one doubt is it possible to submit the contact form details with form group of angular and show error messages.

artf

If you need to use libraries inside your final templates you have to implement custom components with javascript https://grapesjs.com/docs/modules/Components-js.html#basic-scripts

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.

#1292July 17, 2018by ploutos272 answers
1 reactions

Passing custom classes on components block..

Hi there, Components parameters are not allow us to pass a custom specific className, p.s: I don't want to pass the className inside the content.... Is there a way to do that ? Or we should build a plugin for that ?? Thanks !

ploutos27

fixed:

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.

#1291July 17, 2018by Shah-ali2 answers
1 reactions

GrapesJS language localization

Hi @artf, Any solution for language localization from English to Spanish. Please refer. Thanks

lorrandavid

There isn't a special method to translate things. You can read more about it here #26.

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.

#1290July 17, 2018by AnkitKachhadiya3 answers
2 reactions

[BUG]Set href for link block not editable once initialized

#1277 is closed but issue still exist so i have to post as new issue Thank you for the help for earlier @maryia-kabash @artf I have made a custom block for my custom link see code:editor.BlockManager.add("unsubscribe-block", { label: "Unsubscribe", content: { type: "link", content: "unsubscribelink", attributes: {href...

artf

Seems like it doesn't update on the first reset but it actually reacts on changes, indeed you're able to clean it after the first change. I'll check it

artf

@AnkitKachhadiya the fix will be available in the next release

AnkitKachhadiya

Thank you @artf for your atttention please let me know when its solved