GrapesJS Issues

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

3464 issues found

#613December 6, 2017by ShepelE2 answers
0 reactions

How can I add text to PanelManager?

Hello, artf! Thank you for grapesjs. Please, help. I need a title to be shown at the top like a button or a simple text element.

artf

@ShepelE just use JS

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.

#612December 6, 2017by vishal50332 answers
0 reactions

Urgent : Duplicate other blocks when used custom asset manager

Hello, We have modified the Assset manager with custom one. But we are having problem now. If we drop one image into canvase and then add any other component , it will duplicate that component. If we add another image then it would triplet other component. Can you please help us. Below is the code snippet that we have...

artf

If you get duplicate components only when using your custom Asset Manager, well you should check how you assign the src, I can't help you more

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.

#611December 6, 2017by absolution543212 answers
0 reactions

Enhancement: Save form, reuse it when required

#I don't know if this exists or not, is it possible to to create a form, save it and reuse it without pasting it into import screen. Currently an import screen is present where one can paste a HTML code, which is an unnecessary task we can provide user with the option to drag n drop previous saved forms and play with...

artf

Hi @absolution54321 it's something you should be able to implement by yourself, make use of Blocks API

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.

#610December 6, 2017by duskhacker3 answers
8 reactions

Inserting/Editing links is hard

You can only insert them in particular places, and making them "inline" is impossible. By "inline" I mean; I'm writing a line of text, and I want to put a link there, with some highlighted words that are the link, and continue with the words of the line. This is a very typical action and GrapesJS just won't let me do...

ryandeba

Hi @duskhacker, I agree that link inserting/editing is not as intuitive as I would like, and am currently working on customizing it through a plugin. Here's a brief outline of what I'm working on, let me know if you're interested and I can...

artf

Hi @lahdekorpi I think something like this should work

artf

@YevhenShashnin updated the example as the RTE enable/disable functions became asynchronous.

#609December 6, 2017by duskhacker3 answers
0 reactions

CSS editing duplicates body properties

It's still duplicating body sections and properties: When I pull it up, this is what it looks like: <img width="472" alt="screen shot 2017-12-05 at 6 22 12 pm" src="https://user-images.githubusercontent.com/72599/33638098-039c6746-d9ea-11e7-896e-5169febac6f3.png"> I then edit it, removing the first selector section an...

artf

Hi Daniel, just remove the default protectedCss

duskhacker

@artf Thank you!

duskhacker

@artf I spoke too soon. If I remove the default protected CSS as you mentioned, then the body section and everything in it disappears...

#608December 5, 2017by niutech3 answers
2 reactions

Desktop version

Would you mind adding a desktop version for Windows, like Pingendo or Pinegrow, with opening and saving files on disk? You could use NW.js for that. Thanks!

niutech

I've just made an initial version of GrapesJS Desktop using NW.js. Anybody would like to contribute?

Areahints

supported, as an editor with amazing potential for GUI designers, it surprisingly hard to use or "instantiate"

artf

Currently, not on my priority list but I know that someone else was already working on it https://github.com/Immortalin/Merlot

#607December 5, 2017by fabianomiranda3 answers
0 reactions

New toolbar element

Hello. I'm from Brazil and I'm sorry for the bad English. How do I create a new button with a custom event on the toolbar relative to the selected element? Igual ao que remove o elemento selecionado.

ShepelE

I don't understand some words, but if you want to remove selected element, you can use SelectionManager : if you need to create a new button, you can use guide https://github.com/artf/grapesjs/wiki here - create panel, then button, then co...

fabianomiranda

Thank you very much for responding. I want to create a new button on the toolbar when selecting an element.

artf

Hi Fabiano, check here please #266

#605December 4, 2017by Deepak8133 answers
0 reactions

How we can save HTML

How we can save HTML without using editor.getHtml() and replace function. As, when we are using this in image upload then the existing video element html are removed. Please help us to do save image and video data dynamically using backbone or some other solution.

ateshuseyin

You can create your own storage to handle whole data in the editor (html, css, assets etc) HTML part only contains links of assets (image, video etc). If you want to get uploaded data you should override uploadFile method of AssetsManager

Deepak813

Hi @ateshuseyin, Thanks for the message. I don't know how to create our own storage.Please elaborate how to do that as i am in the middle of the this tasks and not able to go further. editor.replace(); refresh the complete html of browser...

artf

@Deepak813 this is highly discussed argument, so just make a search in issues (eg. #597)

#604December 4, 2017by AH1N13 answers
0 reactions

trigger after removing component

Guys I need to trigger some action after removing editor's components. Is there any way to do so? Or have I to write my own trigger?

ateshuseyin

There is not an event related with your requirement. You can easily override tlb-deletecommand. I created a sandbox for you https://codesandbox.io/s/k2yoxjjr95. If you want to handle programatically removed components, I don't know how to...

AH1N1

That's exactly what I've been looking for :) Thank you! I wrote 'after' but I should have written 'when' ;)

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.

#603December 4, 2017by krunal0392 answers
1 reactions

conditional traits

is there way to have conditional traits? if is current component is youtube video then have some traits and if video is non-youtube then shows other traits?

ryandeba

Hi @krunal039, The video component seems to do this already to some extent - see here. If you want to customize the traits further, you could probably do something like this (untested code, but copied and modified from something similar th...

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.