GrapesJS Issues

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

212 issues found

#879February 16, 2018by rajatkumcom3 answers
1 reactions

SyntaxError: Unexpected token < in JSON at position 0 in storageManager, contentTypeJson: true,

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

rajatkumcom

I have done changes in grapes.js file which is not recommended var typeJson = this.get('contentTypeJson'); var typeJson = false; Resolved issue.

rajatkumcom

Getting this error ( SyntaxError: Unexpected token < in JSON at position 0 ) when trying to use:- storageManager: { type: 'remote', autosave: false, setStepsBeforeSave: 1, contentTypeJson: true, params: {}, storeComponents: true, storeStyl...

v8jupiter

Can you give more details?Your have this error when trying to load template from 'http://localhost/grapesjs/fileLoad.php'?Or you have error in init moment. Can you show full initialization of editor? I think your problem in this endpoint h...

#876February 16, 2018by maxtacco2 answers
1 reactions

[Feature] Pass store manager's response to editor's store callback

Hi @artf, We have a need to get a response of the store manager when calling editor.store() method with a callback (we return generated template id in this case from the server). I'm pretty sure you have it implemented for editor.load() method. I think the change is pretty simple in /src/editor/model/Editor.js Let me...

maxtacco

Hi @artf, I created a pull request for this issue - https://github.com/artf/grapesjs/pull/881. Tested locally - works as expected.

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.

#851February 8, 2018by maxtacco3 answers
3 reactions

[FEATURE REQUEST] Promise returning plugins

Hi @artf, I have a case where a custom plugin needs to check user permissions before doing any kind of initialization. The method that does the check returns a Promise, so I have to wait for it to resolve before doing anything. Unfortunately, this creates a raise condition with editor rendering and UI gets into some w...

nashton109

I had a similar requirement. If it helps others, my solution in the end was to create a plugin which then loads my other plugins; The editor config would just reference the one plugin and the plugin options for that plugin would contain th...

maxtacco

Also, this may require GrapesJS' init method to return a Promise instead of the editor, but this can be limited only to cases when there are any plugins that return Promises.

artf

I have to set 'editor.autorender' to false and then render editor manually once my plugin is initialized. This is fine for now, but I'm not quite sure how I would handle this case if I had multiple custom plugins depending on some async lo...

#844February 7, 2018by YeungLong1 answer
0 reactions

grapesjs中能否插入iview-ui组件?

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.

#831February 2, 2018by ensemblebd3 answers
2 reactions

[FEATURE] storageManager dynamic url endpoints

FEATURE REQUEST SPA approach for dynamically loading and storing utilizing the storageManager urlStore and urlLoad config options. It would be GREAT if your code checks if it's a function, not assume it's a string literal defined finitely, explicitly, at time of initial configuration (page load). Changing the config v...

JulyanoF

@ensemblebd you tried to change like it: editor.StorageManager.getConfig().urlStore = "myUrl"?

artf

The correct way of doing so would be updating the Storage model

ensemblebd

I ended up just making second ajax request after calling editor.store(), to store the data I wish to store. I'll give that a try though, that is not the way in which I changed it.

#829February 1, 2018by JulyanoF2 answers
0 reactions

[QUESTION] "Hidden feature"?

Hello @artf . I was implementing modal of AssetsManager and I found it: Is it some "feature" or something else that wasn't completely implemented yet? Is it working? I really didn't find it in any file. If it is working, how can I activate it? When I remove the style display:none from it and try to use, it is working...

artf

Hi @JulyanoF unfortunately just some legacy part, as Assets are already highly customizable I'm not gonna implement such a feature in the core

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.

#725January 7, 2018by hesa20202 answers
0 reactions

CSS Editor

Hello, I would like to know what would be the best route to take to extend the Editor. There is a few features i would like to add for my project:Split view ( Edit / Preview )CSS Editor ( Create classes, animations, etc.. and then i can set my element to use that class )Html editor ( Im sure it could be done easily us...

artf

Hi @hesa2020 you should definitely create plugins to customize the editor and you can start from reading here. Another important resource for customization is API Reference, if you have problems try to check first in repo's issues. For the...

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.

#713January 5, 2018by austinbiggs2 answers
0 reactions

Restrict Droppable Components to specific Component Types

So the wording of this may seem confusing, but essentially I'm trying to use gjs-droppable="" the same way one would use gjs-draggable="". So if gjs-droppable="li.feature" was set on <ul>, then only items matching the selector could be dropped within the <ul>.

austinbiggs

This already works as detailed above, I just had an error in my code originally preventing it from working correctly!

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.

#627December 11, 2017by hatchwald3 answers
1 reactions

default feature just 1 ?

i am sorry , maybe i am forget to read detail , but default feature just 1 (just block) ?

hoainam12k

You can use basic blocks here: https://github.com/artf/grapesjs-blocks-basic (and other from README file)

hatchwald

I was try to find code that feature but , i am still haven't find it yet

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.

#602December 2, 2017by michaellwatson2 answers
2 reactions

Custom HTML/Javascript

Not technically an issue but I'm looking for a way to replicate the "code editor" feature in Click Funnels, where there is a block that opens an editor. Don't want to start getting too creative as I think there is a way to do this inside grapesjs (probably). If not I can start writing one, but thought I should check b...

NorthstarTech

https://github.com/ryandeba/grapesjs-html-block. check out this plugin. It helped us to write our own block that provides a similar function but with 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.