#377October 4, 2017by suraj7402 answers
can anyone tell how to add default newsletter blocks used in newsletter-demo. please help @artf Thanks in advance
artf
Just add this plugin https://github.com/artf/grapesjs-preset-newsletter
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.
#375October 4, 2017by mekamleshk2 answers
@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.
#374October 4, 2017by HarshOB3 answers
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?
#373October 4, 2017by sonnylloyd3 answers
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...
#372October 4, 2017by deffrin3 answers
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? :)
sonnylloyd
@artf thanks i have sent a PR
#371October 4, 2017by edwardjiawei3 answers
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...
#369October 3, 2017by ateshuseyin3 answers
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 👍
#368October 3, 2017by mekamleshk3 answers
Hi, I am trying to store and retrieve data in/from database using below fields : 1) Template Name 2) Template Data 3) Status The question I have is urlStore/urlLoad is only sending/retrieving Template Data Is there any way I can POST/GET all the three fields ? @artf @cmcintosh
arthuralmeidap
@mekamleshk You have to do in a custom way. Using the GrapesJS Api you can achieve this
mekamleshk
@arthuralmeidap Can you throw some lights on it, Like a example or something
arthuralmeidap
@mekamleshk, This (API-Editor)[https://github.com/artf/grapesjs/wiki/API-Editor] has a lot of methods. One of them is getComponents that you can get the data from inside the grapes or getStyle that you can get style data used for the page...
#367October 3, 2017by daniel-farina3 answers
Hi Artur/guys, I'm proposing the following ideas: Open a discord channel or slack (Discord is taking over) to discuss off topic things related to Grapejs. Contribute to this project via Open Collective. I just became the first monthly backer, I'm sure other people can contribute a few bucks per month to pay for all th...
artf
Discord channel created :)
artf
WOW 😮 thanks @daniel-farina this is huge, I really appreciate your words and really grateful for your support on Open Collective, this means a lot ❤️ ❤️ ❤️ I'll open a Discord channel soon
daniel-farina
Great, I just joined. Dan
#366October 2, 2017by dmodules3 answers
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
artf
nothing to add, thanks @daniel-farina
dmodules
Thanks for this answer! <https://mailtrack.io/> Sent with Mailtrack <https://mailtrack.io/install?source=signature&lang=en&[email protected]&idSignature=22> --- Martin Côté, Directeur technologique D-Modules.com <http://www.d-mo...