Is there a method to set how the categories are shown in the Block tab?
d3vr
As a (not-so-great and hopefully temporary) workaround, I moved the category I wanted to move using jQuery after the editor was fully initialized:
cmcintosh
We could look at something simple as adding a Weight parameter like CMS's like drupal do. Ill look at the code to see how hard it would be to create a PR.
edwardjiawei
Should the plugin added components being sort. should able to customized afterward like editor.BlockManager.sort(filter) -- by filter of label, by any config of order in BlockManager.add
Hi @artf i want to ask about get some child from current model, let's say in that source code, can i get child object like get parent object ? thank you, and have a nice day
artf
Sure
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.
Image Components have logic to call Modal and prompt user's interaction for options/configuration of image url. Would like to do similar to link components for link URL. It might be convenient for other components like Form components for business users to drag and type information in single flow. How to achieve that,...
artf
Hi guys try to check out this #286
daniel-farina
I'm also looking in to this trying to get familiar with the code. Once we figure it out we could make some plugins a lot more powerful. Please let me know if you figure it out. We should make a little manual for it.
edwardjiawei
Sound good enough for my case. I have similar intention with #286
I was looking at the default example page and saw that sectors don't have the id attribute that is used as a parameter of the function getProperty After I added the attribute, I can get the property as the image below shows
artf
oops 😅 thanks @MichaelKlemersson will update the demo soon then
When remote storage loading fails, it does so silently. One can only guess what the problem might be. I had to validate the JSON externally to know that the data my server was returning wasn't valid. I could also be missing something, so if there is method to load remote data onto the canvas besides the wiki instructi...
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 guys, I've been stuck for a few hours trying to figure out how to call updateScript from the script section of a custom plugin. So far I was able to create my own plugin which I would like to share once it's stable. I need to refresh it once it connects to an external API and retrieves specific data. any help is ap...
daniel-farina
@artf Thank you for clarifying that. It makes perfect sense. What I ended up doing is: Making a function within my plugin's script that is called based on the user's interaction with a modal. so I can refresh it now when I detect the user...
artf
Amazing work @daniel-farina excited to see it done 😍
artf
Hi @daniel-farina this is something might confuse a lot of people, especially when you see the script as a function. Everything inside script is completely out of the scope of GrapesJS, there is nothing to access (model/view/methods) all t...
First up all thanks @artf for your wonderful stuff on GrapesJS, We need to customize complete editor instead of integrating into our app and most important it should be developer friendly in following ways ,Reuse editor region for content creation or edition.Remove complete CSS and redesign as per our branding themesO...
arthuralmeidap
Hi @manjunaras , For css, GrapesJS provides some Sass variables that you can override and change some colors. Here you can check the available sass variables: https://github.com/artf/grapesjs/blob/dev/src/styles/scss/gjsvariables.scss Star...
artf
Thanks @arthuralmeidap for a good overview. @manjunaras I'd just add that buttons inside default panels (that you can actually hide) are executing built-in commands, so, for example, if you want to open the modal with HTML code just use ru...
arthuralmeidap
Hi @manjunaras , I'm not @artf but , as far I have been reading about GrapesJS, with it's API , everything you mentioned is possible. Take a look here: https://github.com/artf/grapesjs/wiki
@artf , Until versions 0.9.x , GrapesJS loads all it's internal's modules before all the plugins are initialized. Since from version 0.10.2 you added a new module initialization after the plugins initialization. You can see it here: https://github.com/artf/grapesjs/blob/v0.10.2/src/grapesjs/index.js#L73 This behaviour...
npm run build Test fails. From a fresh installation. I removed npm test and tried to run the webpack generated distributables on an apache server. Unfortunately the Ui is completely broken... Anyone run into this? p.s. im using Cloud9 IDE if that makes any difference.