Hi, while uploading an image through asset manager, I get the following error: Assetmanager configuration at editor init looks like Folder exists and is writable. Can you please help? Many thanks for this excellent software beside this issue :-)
artf
The upload endpoint should return a JSON, your seems to return an HTML
gasserol
OK, many thanks, don't know how to solve this.. I'm using a normal apache server on localhost for tests and believe that this endpoint does not answer at all. I will try to implement your solution to the yii2 framework, there I can handle...
mekamleshk
@gasserol you can refer to my code Here I was able to upload and retrieve files.
Hi, I want to hide a particular element when ever we click a toolbar button commands: { defaults: [{ id: 'submenuitem', run: function(editor, senderBtn){ // I want to hide "photostack-1" element ???? ???? ???? }, }], } var domc = editor.DomComponents; domc.addType('bannergalleryportion', { model: defaultModel.extend({...
artf
You can access the element from the model
sanjeevSavitr
Thanks..
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 again @artf , i confuse about push toolbar in the element with specific class (ex: modal-trigger) the element code is : and in the /src/dom_components/model/Component.js as you can see, the element to push toolbar just in tag element, and can i push toolbar to all element inside ? Thank you and sorry for my bad...
artf
I'd say the correct way to do so is to extend initToolbar() of the Component model and put there you logic
bungambohlah
I'd say the correct way to do so is to extend of the Component model Of course, i make my custom toolbar in method and please @artf can you explain about the logic to push the toolbar in the child object? i confuse about the backbone struc...
bungambohlah
Sorry i have fixed this with my logic, thank you @artf :+1:
Hi @vtista the purpose of this part is to load scripts before any other component as one of them might need them as a dependency. Basically, it's trying to simulate the <head> synchronous loading
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 am using two dropdowns in traits. On the selected value of the First drop down I am going to call an API and set data into another dropdown. I got data on console but that is not loading on the page. I have to refresh the page to view the changes. What should I do to get immediate change on the page? Here is m...
Please help in solving the below issue. How to call a function which is outside the component in script function of component. ex: demo.myFunction function should be called in component script, but script is not able to recognize demo variable. Where as demo.myFunction can be called in init function. grapesjs.plugins....
artf
You'll find the answer here #358
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 Is there a reason why when inserting text a new div is created for every break instead of a standard </br> Is it possible to disable this behavior and make a </br> instead. I know this works if I hit the shift + enter but I would like for it to be the default option. Thank you
artf
Hi @daniel-farina this is a default behavior in WebKit browsers, here you can find current solutions https://stackoverflow.com/questions/18552336/prevent-contenteditable-adding-div-on-enter-chrome I actually started rewriting the current R...
daniel-farina
Thank you for the update and information. I'll look into it.
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 @arthuralmeidap @sonnylloyd @cmcintosh @daniel-farina Thank you so much for developing such a awesome framework. I tried to achieve almost all the functionalities in grapesjs preset newsletter. Just need some help on this two little things : 1) I am able to upload and load images into the asset manager. The t...
artf
I am able to upload and load images into the asset manager. The thing I am missing on is after uploading the image, it is not reflected immediately in the asset manager image list. Here is the problem In https://github.com/artf/grapesjs/bl...
mekamleshk
Hi @artf Not sure about using https://github.com/artf/grapesjs-preset-newsletter/blob/master/src/buttons.js#L36-L37 I am using the compressed version: <script src="js/grapes.min.js"></script> <script src="js/grapesjs-preset-newsletter.min....
artf
The Add button works exactly as expected, it shouldn't upload/download stuff. If you need custom behaviors add your UIWhy do I have to refresh the page every time. Is it possible to load the images directly after uploading I've already tol...
Hello @artf , Is there a way to automatically select the class that is created on elements with custom styles. I'm currently trying to dynamically update classes with a grid system and it's working fine but the auto selection of all classes is creating issues. I've been looking at the code for hours trying to figure t...
daniel-farina
Update: Ok I figured out that I can make them all unselect by default by changing src/selector_manager/model/Selector.js and this pretty much solves all my problems as when I change the background color of the block, it will update only c8...
artf
You can access selectors from the model or for example, disable them all from its module
daniel-farina
fyi changing this to false will make your build to fail due to this in the test script: I just commented this out here: test/specs/selectormanager/model/SelectorModels.js and this test/specs/csscomposer/e2e/CssComposer.js line 129