GrapesJS Issues

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

3464 issues found

#1761January 29, 2019by Ramkumar-Murugesan2 answers
0 reactions

[Question] how to defined textNoElement value after grapesjs.init

Hi, I try to define the values for textNoElement after I was initialized a grapesjs. but it not reflected in grapesjs UI. can anyone please help me but its shows

artf

Do this: editor.StyleManager.getConfig().textNoElement = '...'

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.

#1760January 29, 2019by Geelik2 answers
0 reactions

Prevent generating css properties

Hello, I want to prevent CssComposer to generate style for the displa property. I tried unstylable config on my components without success. Any solutions ? Thanks for your time

artf

You can't prevent the style to be generated, unstylable might be used to prevent showing display property in style manager

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.

#1759January 29, 2019by tristanMatthias3 answers
32 reactions

[Feature request]: Typescript declarations

This is an amazing project! Thanks. Would it be possible to get typings for Typescript? It would make life a lot easier for the project I am working on. Thanks so much!

Rottohawkins

This might take a little bit longer because is not compatible with grapesjs, not even the browser version. Thats why I have to make everything by hand. As a result I am not sure if it will be accepted in [official types repository]. So far...

warent

Would love to see TS declarations as well. TypeScript is becoming fairly standard / essential for production codebases

Sharsie

If someone starts working on this, poke me please, we might be able to give a hand here and there... Would really love to have typings for this project

#1758January 29, 2019by tjb2953 answers
0 reactions

Unable to load in CSS string with characters such as '#' with setStyle()

You're submitting a BUGAre you using the latest release (older versions are NOT supported)?If you're not sure, type grapesjs.version in console and press ENTERAre you facing the bug with your local copy of GrapesJS or with the current demo?If a local copyIndicate all informations about your OS, browser and GrapesJS ve...

artf

First of all, use the latest version and then, can you show an example and the error returned by setStyle?

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

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.

#1757January 28, 2019by madcowtuning3 answers
0 reactions

Remote storagemanager not working

Hello, For 2 days I am fighting with the storageManager. I couldn't load template from remote file. Finaly I discovered that it is working only when I load grapesjs from https://unpkg.com/grapesjs. If I triy to load grapesjs from any min.js or dev dist files remote template load is not working. It is also working with...

madcowtuning

I figured out what is going on. If you set contentTypeJson "true" the load is working but the store is not because it is trying to send json data as POST data and server didn't parse it. If you set contentTypeJson "false" load is not worki...

artf

server didn't parse it The server should take the POST content from the body of the HTTP request

madcowtuning

I fixed it by modifying this row: var res = parsable ? JSON.parse(text) : text; If I set contentTypeJson to false it couldn't load template because it is JSON type but can store the data. If I set contentTypeJson to true then it reads the...

#1756January 28, 2019by muzniousx3 answers
1 reactions

Drag and Drop not working in resized editor window in Google Chrome

Hi, I developed some components and all works fine in Firefox, Opera browser. In Google chrome also working fine in fullscreen editor mode only. But, when resizing the editor screen size(custom width & height), drag and drop is not working for all components. The green bar to point the target drop location is also not...

muzniousx

Hi, Thanks for your reply. editor.refresh() also didn't work. But, finally the issue was fixed when updating the google chrome and grapesjs-preset-newsletter.

artf

Can you explain how do you resize the editor?

muzniousx

This is the function i use for resize the window. function resizeEditor() { if ($('.detailview-header').length > 0) { $('#MyTemplateEditor').height(($(window).height() - 150 - $('.detailview-header').outerHeight(true) - 70) + 'px'); } else...

#1754January 25, 2019by hpruvot3 answers
2 reactions

[Bug] problem of styling with ckeditor(4)

Hello @artf and all ! Thanks again for the amazing job ! I tried to implement ckeditor with grapesjs and it seems to work pretty much correctly but today I found something weird. I tried to screenshot this, let me know if it's not clear...I select a text in white, it styles the span element, all fine.I save my work, I...

hpruvot

@artf you first thought was the right one ! I still double checked my code and it turned out that someone had changed my code and was indeed loading the HTML and not the JSON anymore... ¯\(ツ)/¯ So sorry for this loss of time...

artf

hey @hpruvot did you setup correctly the remote storage https://grapesjs.com/docs/modules/Storage.html#setup-remote-storage I believe you're storing/loading the HTML instead of the JSON

hpruvot

Hi @artf ! I'm storing and loading JSON though, to be able to re edit my templates after saving them, and it works just fine for the rest of my components... :/

#1753January 24, 2019by arachnosoft3 answers
0 reactions

[Bug/Question] StyleManager - SectorsView - addToCollection() uses "name" attribute to build the ID and fails with several spaces or special characters

Hi @artf , Using the pluginOpts property from the grapesjs.init() method, I customized the sectors displayed on the Style Manager (through the Newsletter plugin), like this: The goal being to translate the labels into another language. But I found that the "name" property is also used... to build the id attribute of e...

arachnosoft

Here is the screenshot I mentioned earlier:

artf

If using the "name" attribute is intentional here, and not a copy/paste mistake (in case you meant model.get('id') instead of model.get('name')), what's the purpose of this? Rather than using, say, an "id" property we could define ourselve...

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.

#1752January 24, 2019by hemanthmc2 answers
0 reactions

Add Image is not working in IE Browser

Uploading an image and adding to the template is working in Chrome but it is not working in IE browser. Please give me a solution how to fix this issue in Internet Explorer . Please find the attached screenshot for more detail.

artf

In that demo, uploading is not even enabled so I don't know what are you talking about. ps. when you talk about IE, specify the version please

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.

#1750January 24, 2019by stychos2 answers
0 reactions

[Question] Show drawing outlines only under actively editing blocks

Is it possible to show show drawing outlines only for the currently selected (with all children) and for the hovered elements? Thus all other page elements would be rendered as a final result.

artf

Each component has the highlightable property, that you can disable on all types (by extending them) and change it on component select change (by listening to component:selected event)

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.