GrapesJS Issues

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

3464 issues found

#2021May 17, 2019by acamenhas3 answers
0 reactions

Copy-Paste duplication // CKEDITOR

Hi all, I've integrated CKEDITOR as RTE on grapesjs. But now, when i made a copy and paste the content shows duplicated. Anyone had this bug before? Thanks

acamenhas

Sorry wrong repo

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.

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.

#2020May 17, 2019by fillipi12 answers
0 reactions

Remote storage returning 204 NO CONTENT

I'm trying to save to a remote database from a local grapesjs editor. Although I'm able to hit the endpoint it's giving me a 204 NO CONTENT. this is the server I set up: var express=require('express'); var app=express(); app.use(bodyParser.urlencoded({ extended: true })) app.use(cors()); app.post('/grapesjs', function...

artf

The remote storage doesn't expect any kind of return from the store endpoint, so any 2XX status code is ok

jvrjosephlouie

Hello, im also getting the same response and im not receiving any data from my api. Does it require a request method for it to be able to function successfully? thanks. const storageManager = { id: 'gjs-', type: 'remote', autosave: true, a...

#2019May 17, 2019by fillipi12 answers
0 reactions

Remote storage returns 204 NO CONTENT

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.

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.

#2018May 15, 2019by nternouski3 answers
2 reactions

BUG When import as module Angular 6

in Version: "grapesjs": "^0.14.61", "grapesjs-preset-newsletter": "^0.2.20", i import the script as: and the context is the code: And only on build, the console print: Please Help me. Thanks for your time.

joshberry

@nternouski I'm guessing you needed to include the gjs-preset-newsletter script in the scripts section of your build in angular.json. Any plugins you want to use need to be included here or the angular build won't know to include them.

joshberry

If you don't add it globally, you'll need to manually register the plugin with grapesjs. Then, be sure to use the ID you configured and not the variable name when initializing.

artf

Hi @nternouski, unfortunately, that plugin still uses the old exporting, so you have to use it like this:

#2017May 15, 2019by keithstric2 answers
0 reactions

QUESTION: Pressing Backspace or Delete key in traits panel removes element from canvas

I'm using grapesJS within a Polymer 3.x Element and everything is working beautifully, awesome project. However, I'm experiencing an issue: When I select an element in the canvas, navigate to the traits panel, put my cursor in a trait field enter some text (or not) and then press the delete or backspace keys, it delet...

artf

Sounds like an old issue to me, are you using the latest version?

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...

#2016May 14, 2019by yrbn3 answers
0 reactions

[QUESTION] How to remove unnecessary component?

@artf I use CKEditor and it's link plugin can't work with 'Link' blocks. How can I prevent creating 'Link' component when grapesjs newsletter is rendering? Or prevent link wrapping on chosen class. When adding a link: After importing the code of template shown above:

artf

If you want to disable the component from the parser you can do this:

yrbn

@artf no, If I do in such way the link becomes a text. I want grape js not to wrap it with any block

artf

I want grape js not to wrap it with any block Which block are you talking about?

#2015May 14, 2019by HakuTheWolfSpirit3 answers
0 reactions

[Question] Is it possible to extract the updated properties in events

Hello, I am wondering if it is possible to react on property updates. I have tried to use the built-in events, but its not clear to me how I am supposed to extract the required information from the model. For example when I handle the event then I get a model with alot of information, but not exactly which font-family...

artf

You can do it in this way:

HakuTheWolfSpirit

Thanks for your answer. That would mean that I had to write for every single an event handler. Isn't there a more generic way to solve this issue?

artf

That would mean that I had to write for every single an event handler. Every single what? property? In that case you can try this:

#2014May 13, 2019by alimajed933 answers
1 reactions

[BUG] - Not able to get content of a link block

Hello all, I am using grapesjs version 0.14.52. I am having the following issue: When I drop a link block inside the canvas, I can use the following linkModel.get("content"), to get the content of the link. But once I set a new content, using linkModel.set("content", "whatever"), linkModel.get("content") starts return...

prosenjit-manna

Duplicate #2013

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.

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.

#2013May 13, 2019by alimajed933 answers
0 reactions

[BUG] - Not able to get content of a link block

Hello all, I am using grapesjs version 0.14.52. I am having the following issue: When I drop a link block inside the canvas, I can use the following linkModel.get("content"), to get the content of the link. But once I set a new content, using linkModel.set("content", "whatever"), linkModel.get("content") starts return...

artf

Unfortunately, this is due to the not consistent logic in the ComponentTextView https://github.com/artf/grapesjs/blob/3f053af969ef6a688d526d158b9df7e6aa076838/src/dom_components/view/ComponentTextView.js#L87-L114 So, if you use the built-i...

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.

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.

#2012May 13, 2019by webdeveloper04293 answers
0 reactions

[question] how to add script for all widgets(like protectedCss)

I want to add some functions for all components accessible. when initialize editor, there is a option like protectedCss. Isn't there a way javascript like above?

artf

You can initialize custom js in the canvas in this way:

webdeveloper0429

Thank you. Btw what I want to need is inline javascirpt. not external link... regards.

artf

In that case, I suggest you access the document of the iframe and to append manually the inline script (to get the document use editor.Canvas.getDocument())