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.
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...
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.
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.
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.
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.
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.
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.
Did we get the Custom HTML type in video traits so that user can able to enter the iframe code and it will embed in the html. As,all the famous editor have this feature which is common one in video category. Is this video traits is in roadmap. As we have created this new component but that conflicts with the existing...
ryandeba
Hi @Deepak813, This doesn't really sound like a video component to me if you let users enter in whatever iframe code that they want. If the component lets you enter custom "iframe code", it seems like it would also let them enter some non-...
Deepak813
Hi @ryandeba, Thanks for the message. The exact scenario in Custom HTML type in video is very simple.If user enter any non-iframe HTML then we will display the error message just as shown in vimeo video type or if user enter any iframe HTM...
ryandeba
Thank you for the additional details @Deepak813 - I think I have a better idea of what you're trying to accomplish now. I would still be interested in seeing an example if you have one available. In the meantime, I will give some thought i...