GrapesJS Issues

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

1,399 issues found

🔍 outdated
#796Jan 25, 2018by kickbk3 answers
1 reactions

Can't drag component into canvas after styled element is cloned

Go to any of the demo, select a text box, give it a background color. Clone it. Then try to drag in another text component and it doesn't let you.

artf

Thanks @kickbk now I get it. It was already fixed here #779 and will be available in the next release

artf

@kickbk I can't reproduce it, but I think I'm doing something wrong, can you provide a screencast/gif of the behavior? (or anyone who faces the same issue) Thanks

kickbk

Using Mac Chrome. Same on Safari and FF.

#795Jan 25, 2018by chiqui3d3 answers
3 reactions

Editor.getSelected() in run:open-assets

Hello! I want without having to create a new block button, and stopping the event associated to the image that this run:open-assets get the area created by the editor in the canvas and add there the image that I got with my personalized modal image. I want to clarify that when I double-click on the image inside the ca...

artf

Pay attention to the current command Your command should be something like this

artf

Apologize @chiqui3d but try to elaborate better, because I didn't get a single statement of what you're asking

chiqui3d

Yes @artf , you're right, I just updated it, I hope it's understood now.

#794Jan 24, 2018by JulyanoF2 answers
0 reactions

How to create a custom option in toolbox?

I would like to know how can I create a custom "option" with custom content in this place:

artf

This is just a default Panel with 3 buttons where each button triggers its own command OpenStyleManager OpenTraitManager OpenBlocks <- being the last modified, use this as a starting point So if want to add a new button there you can use 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.

#793Jan 24, 2018by chiqui3d2 answers
0 reactions

Edit the title and view code icon

Hello, I would like to know if I can only edit the icon and title of the code command. Also another doubt, is that I'm starting and I'm making a mess when it comes to searching the documentation, by chance you don't have an image of the publisher that says it's everything to identify it, faster and know how to edit so...

chiqui3d

Solved with removeButton

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.

#792Jan 24, 2018by alvim3 answers
0 reactions

Script property using function don't work with blocks

In Components & JS docs there's this example: This works perfectly. But I couldn't use a function instead of a string in script, as is said it's supported like this example: It won't happen anything. The documentation isn't very clear about using scripts in blocks or components.

artf

Find where is the issue, it will be fixed in the next release

chiqui3d

@artf These changes when they will be published?

artf

@chiqui3d should be fixed

#790Jan 24, 2018by JulyanoF2 answers
0 reactions

Is it possible to separete text editor from block?

I'm trying to separete a text editor from block, something like it: Is it possible?

artf

@JulyanoF sure, you can create a custom Trait (eg. textarea which, on render, initializes with some custom RTE) and on update change the component's content ps: please, next time, follow the issue template

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.

#789Jan 23, 2018by Geczy3 answers
1 reactions

GetComponents doesn't return components

It's as if it's not parsing down the DOM Reproduce. View console log https://codesandbox.io/s/lxl7x2mnq You can see there are way more than 5 components / models in this sandbox. But console log only shows 5 If I add one to the root of the dom tree, it will show 6. But if I add one to a child component, it will not se...

artf

@Geczy probably I've to update the description, but getComponents just returns wrapper's components (with its children), if you want to return an array of all components you can do this:

Geczy

Works great, thanks

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.

#788Jan 22, 2018by JulyanoF1 answer
0 reactions

Insert custom CSS inline

I already tried different ways to do it, but it's still not working... First: editor.addComponents('<style>img{width:100%}.botao-roxo{background-color:#8D7EA2;border-color:#8D7EA2;color:#FFF}.botao-roxo:active,.botao-roxo:focus,.botao-roxo:hover{background-color:#FFF;border-color:#8D7EA2;color:#8D7EA2}.botao-grande{wi...

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.

#787Jan 22, 2018by ghena2 answers
0 reactions

Html conditional comment

Hi Guys, I dont understand how save ad load conditionl html comment for e.g: <!--[if (mso)|(IE)]> <table align="center" border="0" cellpadding="0" cellspacing="0" width="650"> <tr> <td> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" class="full-width" style="max-width: 650px;" width="100...

artf

You have to create the comment component #208

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.

#786Jan 22, 2018by perfect-coders3 answers
0 reactions

How to get the next and previous models/elements of selected element

I am cloning an element. I want to get the next element or previous element. By this I mean to say that How can I get the model or How should I give some custom attribute to the cloned element. Thanks in Advance.

JulyanoF

When you say "element", you are talking about blocks? Like button, text, section...?

perfect-coders

yes

JulyanoF

You can get all blocks like this: var blocks = editor.BlockManager.getAll().models;

Browse all topics