GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

569 issues found

๐Ÿ” canvas
#1803February 18, 2019by ageir3 answers
0 reactions

[Feature request] Fixed size canvas

We're using GrapesJS at work for building a kiosk-system into our CMS. Currently using the webpage template. We are displaying the content on displays/tvs which has a fixed resolution, for example 1920x1080 laying down, or 1080x1920 standing on the side And I've tried to find a way to limit the resolution in the canva...

artf

Have you tried the Device Manager API?This will (sometimes) add scrolling in the canvas in the webpage template of course, but I don't see that as a problem as its more important to know that the design you're working on will look the same...

ageir

Yeah I did, works great if you are editing on a screen that is larger than the intended content. But if you're for example editing for a 4k screen on a full HD screen its a bit problematic. Zooming seems great! Would be great if you can zo...

artf

Yeah I did, works great if you are editing on a screen that is larger than the intended content. But if your for example editing for a 4k screen on a full HD screen its a bit problematic. Zooming seems great! Would be great if you can zoom...

#1797February 14, 2019by arachnosoft3 answers
0 reactions

Weird issue with internal drag&drop - Dropped contents === "null"

Hi @artf , I'm facing a very strange issue related to HTML5 drag & drop. When I select some mixed contents within grapesjs, including editable text contents and the surrounding components as a whole selection with the mouse, the dropped (copied) contents is sometimes "null" (a string carrying the "null" text value, no...

artf

Thanks for the report @arachnosoft BTW I'm able to reproduce it, but only once the first CKEditor instance is activated, can you confirm?

arachnosoft

Yeah @artf , seems to be the exact test case... If I refresh the page to get a clean context, empty the canvas, drop a Grid component (quite complex one), select some of its text and surrounding cells WITHOUT activating CKEditor, and drag/...

artf

I noticed that a new CKEditor instance was being created into the DOM each time a new component is edited, even though the CKEditor plugin uses CKEditor's inline() method. I don't know if this is "by-design", or if it could explain that ki...

#1795February 14, 2019by MisterFK2 answers
0 reactions

Execute a javascript function after adding a block

Hi, I try to create a canvas block and run a javascript which generate ChartJS graph inside. I don't understand how to execute a javascript extern function on a canvas. And how to retrieve the canvas id when is it add? Thanks !

artf

https://grapesjs.com/docs/modules/Components-js.html

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.

#1784February 11, 2019by sharma-mohit-eca2 answers
0 reactions

Remove Default components with canvas elements

How to remove default components that comes with canvas elements i.e., Copy, move and delete

artf

??? There are no default components if you don't load them (eg. from LocalStorage)

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.

#1776February 6, 2019by shrnfnchr2 answers
0 reactions

[Question] Add read-only trait for all controls

We are using grapejs to create webpages. We are doing some back end manipulation of the json to link each child of the html (usually a row) to a record in our database. To that end, I've added a trait to every component called custompk. Upon saving the grapejs, I loop through the first level of components and add a re...

artf

Create your own trait https://grapesjs.com/docs/modules/Traits.html

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.

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

#1763January 29, 2019by poeeain2 answers
0 reactions

Add <Style> tag in block content objects (not a string)

Browser = ChromeGrapesJS = Latest version ( 0.14.52 ) I am trying to create a block includes nesting content object with script, style, type properties. It works fine except adding <style> tag in the content. Issue If I create block content as a String like option (A) as below, CSS goes to CSS editor. But if I create...

artf

BTW, I think, for your case, a custom component is more appropriate

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.

#1742January 23, 2019by suresh51 answer
0 reactions

How to load local css in to canvas of grapesjs editor in React ? Css path is not taking

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.

#1739January 22, 2019by Soharab-Shaikh2 answers
2 reactions

How to load dynamic CSS style(Not Link) into the Canvas head

Hi, First of all thanks for your great Work !!!!! I am trying to load a dynamic style into the canvas head. Is there any way to load dynamic object or string into the canvas head. var customeCss = "h1 { color:#000000; font-family:Courier; font-style:italic;; }" var editor = grapesjs.init({ ...............................

artf

Do this

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.

#1738January 22, 2019by cnaa972 answers
0 reactions

[Bug] Table cell(td, th) resize error

Hello. I'm working on Table feature with this awesome project grapesjs. ProblemI added table component on canvas. In ComponentTableBody.js, change default rows and columns options.In ComponentTableCell.js, add a resizable options on cell component.then In order to make resizing cell feature, but It doesn't work. Descr...

artf

The real problem here is the class actually, so I'm ok with removing them from the core (they are actually useless here), but I'd avoid other table-related components.

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.