@arthuralmeidap @artf @cmcintosh I am trying to edit a existing template in the database, I am unable to send the template data and id to the view I have this structure in my db : <table style="width:100%"> <tr> <th>id</th> <th>template-name</th> <th>template-data</th> </tr> <tr> <td>1</td> <td>first</td> <td>{"gjs-as...
artf
@mekamleshk we're already talking about this here #368 there is no need to create another issue with the same content, 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.
Like If I created drop-down in traits and with a select value of dropdown I want to change the text that is present in that component without reloading or dragging that component again.
artf
ok, what about editor.setComponents('<div>...</div>')?
artf
This is how traits should work. When you update the value of the trait that change is reflected up to the component (example of input type in select component https://github.com/artf/grapesjs-plugin-forms/blob/master/src/components.js#L70-...
HarshOB
Let's say I made custom component and add that to grapes editor then I want to change body(You can say whole HTML/CSS) of that component using selected value in the drop-down from traits. Is it possible?
when using the color picker everything works fine. however if you add a hex value to the input and press enter the color preview updates but the color is not applied to the element on the page
sonnylloyd
@art i think the issue here is that inside function setValue(val, opts = {}) of InputColor.js does not call the change event inside spectrum. looks like it needs to be separated out.
sonnylloyd
@artf i have been looking at this quite a bit and managed to get it working but the way i have done it seems a little hacky. The issue i found was inside src\domain_abstract\ui\InputColor.js inside setValue(val, opts = {}). the value opts....
artf
@sonnylloyd actually the real issue is here https://github.com/artf/grapesjs/blob/dev/src/domain_abstract/ui/Input.js#L24-L27 should be instead: I've already made this change in the latest RC, you can see it working here http://grapesjs.co...
The JSON response of an upload is like this {"data":["http://url.com/flower.jpg"]} The response event is working.In the response event response is in the format of string. Content-type is set to application/json when uploaded file. Now I manually add image to assets in the response event. Is there any problem in the r...
sonnylloyd
I have the same problem and like you i added the files manually. just in case someone else looks at this and needs to achieve the same thing manually my response looks like this @artf i believe the issue here is inside src\asset_manager\vi...
artf
LOL Yeah I'd say it's definitely the reason behind the bug Would you like to PR it? :)
Do my API call correctly, want to add a RTE with custom function to add a link/open new windows/open modal: Command work for fontSize but the dropdown are not aligned and show the option value Command not work for insertHTML. Function not working (Intended/Not a Features) http://grapesjs.com/demo.html I think even com...
artf
Hi @edwardjiawei, it doesn't work because the command: 'tlb' in RichTextEditor.add it's not GrapesJS's Command but the one from execCommand's API (eg. 'fontSize', 'insertHTML', etc.) so currently, you can't attach custom behaviors to RTE....
edwardjiawei
Hopefully support some RTE with more permissive license like MIT or BSD. I guess some companies might even don't choose BSD. CKEditor integration are quite easy, but the license might not be good for some companies. Thanks anyway.
artf
CKEditor is too much big for being the built-in solution (but you can find it as a plugin if you want to use it) I'll probably go with https://github.com/jaredreich/pell this is all its code https://github.com/jaredreich/pell/blob/master/s...
I tried to use grapesjs from source by using require('grapesjs/src') to debug both my source and grapesjs. But could not success because of below issues;There is some requires like require('plugin_manager'). These can be passed by webpack config but it is not a nice solution.'<# VERSION #>' preprocessing should be don...
ateshuseyin
At DevicesView.js:5 there is underscore usage w/o require: template: _.template(`
ateshuseyin
I just notice that you are using ProvidePlugin. That is a solution but these kind of configurative solutions are a limitation to grapesjs users which are using from source.
artf
correct @ateshuseyin I just never configured it to work properly from source, indeed have to move few configurations from webpack to npm. Appreciate your help π
Hi @artf , is grapejs suppose to support responsive? Thanks!
daniel-farina
@dmodules dmodules, I believe that's completely up to you. You could for example use bootstrap in your templates if you wanted to. I think @artf made it abstract enough for anyone to use it with any css framework. Dan
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