GrapesJS Issues

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

203 issues found

🔍 enhancement
#1816Feb 20, 2019by Shah-ali3 answers
0 reactions

Not allowing to upload same image on same the position after delete that image

Ajax call which is uploading image file in assests folder It's working fine to add an image from the local. But in another scenario, It's not working. Please have a look Drag image block Select an image Delete that image Add the same image again on same the place, "uploadFile" function is not calling It's not allowing...

artf

We have to clear the file input once the image is selected

Shah-ali

Any hint please. how to clear file input?

Shah-ali

I think, I have fixed it. In OpenAssets.js

#1812Feb 19, 2019by ryancwalsh3 answers
4 reactions

404 when trying to add background image (reproducible in demo)

Visit https://grapesjs.com/demo.html in Chrome IncognitoClick the "Header" elementClick Decorations > BackgroundDelete Layer 2Click Layer 1Click "x" to delete the purple background imageNotice "GET https://grapesjs.com/none 404" error in the consoleClick "Images"Try to add any other new image, and nothing works

NicoEngler

I can confirm https://grapesjs.com/none 404 at step 7 tested in Chrome 72.0.3626.119 both normal & incognito mode.

NicoEngler

@artf I can't, adding images works (both normal & incognito mode).

ryancwalsh

Update: I just tried again on Win 10 Chrome Incognito Version 72.0.3626.121 (Official Build) (64-bit) using my original steps above. This time, the console error says Failed to load resource: the server responded with a status of 404 () no...

#1767Jan 30, 2019by arachnosoft2 answers
1 reactions

Ensure that getHtml() / runCommand("gjs-get-inlined-html") returns the very latest contents of the canvas

Hi @artf , I ran into a similar, if not the same issue as this one: #1327 While editing a text block, I click on an external button to get the contents of the canvas, without leaving the cursor from the canvas. At this point, if I call getHtml() or runCommand("gjs-get-inlined-html") (my grapesjs being loaded with the...

artf

Yeah, this is exactly how it works. I'll try to check if I'm able to merge the temporary state before getting the HTML data

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.

#1745Jan 23, 2019by sankaran853 answers
7 reactions

Allow to import HTML documents

Hi Team, We are using grapesjs newsletter plugin in our project for importing and preview the template. We are facing some difficulty in retaining the template structure which we import in to grapesjs editor. Please check the below example IMPORTED HTML EXPECTED OUTPUT ACTUAL OUTPUT , what we get from editor using the...

wimurk

@artf i am. First get the html with ->getHtml then put it in an dom element. Then extract the body en remove the title, meta, etc from the dom. Then extract the html again. Long live JQuery. But still would be a great feature to do all tha...

artf

<img width="1253" alt="5" src="https://github.com/GrapesJS/grapesjs/assets/11614725/830ea394-773f-4d76-8ea0-37af7e250760"> Added the possibility of importing HTML documents https://github.com/GrapesJS/grapesjs/pull/5895

artf

Currently, the editor imports only the content inside the body. To make it understand also other document nodes, it'd require a refactor of the current HTML parser

#1711Jan 5, 2019by fulus063 answers
0 reactions

Error in prompt position after moving canvas

1、移动画布 2、点击layerManager(如果不点击layerManager 不会出错) 3、画布里的提示框位置出错 1、 moving canvas 2、 click layerManager (If you don't click layerManager, it won't go wrong.) 3、 The position of the tip box of the picture is wrong.

artf

Thanks for the report @fulus06 can you provide a reproducible demo on https://jsfiddle.net/, please?

fulus06

@artf https://jsfiddle.net/fulus06/kqsezd0c/5/

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.

#1703Jan 3, 2019by narendravaghela1 answer
3 reactions

How to allow special characters in class name or data attribute?

In my HTML code, I have some variable placeholders defined in element's class name or data attributes. For example, consider following code block, When I load this in the editor, it removes them and I can't get them back while exporting the code via editor.getHTML(). So, the result of above code is as below, If you se...

artf

The escape function is applied in the Selector model. I think it might be a good idea to provide some option as a custom escape strategy.

#1626Dec 3, 2018by ProfSaputo2 answers
0 reactions

Wrong Placeholder marker when inserting in column flexbox component

Hello artf, I have a Problem with the Insertion Placeholder Marker. When you insert a component in a Flexbox-Parent it is always vertical (as normally required). But if you change the flex-direction property to column, the items are sorted vertically, so the Placeholder should be horizontal, as for example block items...

artf

Thanks @ProfSaputo I'll fix it 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.

#1585Nov 15, 2018by goremykin3 answers
0 reactions

Hiding text editor

Your method "hideToolbar " does not provide for a situation where the text editor is greater than 100px. As a result, its piece is visible in some situations (for example, at the beginning of the customRte.enable method)

artf

Can you provide a live example? I'd expect the toolbar to be hidden due to display none

goremykin

Can you provide a live example? I'd expect the toolbar to be hidden due to display none If you connect CKEDITOR according to this instruction: https://grapesjs.com/docs/guides/Replace-Rich-Text-Editor.html#interface Put a breakpoint at the...

goremykin

Just need to take into account that I have a large size ckeditor (more than 100px)

Browse all topics