#763January 16, 2018by austinbiggs3 answers
After reviewing code, I'm not sure how to disable opening the AssetManager while in Preview Mode. Has anyone done this successfully?
austinbiggs
That worked perfectly!
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.
#762January 15, 2018by goldengrisha3 answers
Please help, how can I require or import grapesjs-blocks-basic, not through <script/> tag?
austinbiggs
@goldengrisha - Can you clarify exactly what you're trying to achieve?
goldengrisha
for example if I want to include this plugin I need to add tag like this <script src="path/to/grapesjs-plugin-export.min.js"></script> and then plugins: ['gjs-plugin-export'], can it be achieved by import or require ?
artf
You mean something like this?!?
#761January 15, 2018by gabrigcl3 answers
Hi. I wish a text component that do not create new components every time I press "Enter" key to create new paragraphs (this is a bad usability). In addition, the actual text component from the core of grapes has a problem (described in the screencast below). Thanks in advance for your attention!
Moikapy
Not sure if I found this code in an Issue on here or on Stack Overflow, but this code here replaces the Divs with a <br/> when you press the enter key. I placed this code in the same file as my grapes-config
ryandeba
I looked into this myself a few days ago...apparently there's an insertBrOnReturn option for execCommand, but the browser support is terrible. A solution like this is probably better. @artf How would you want this to change? Should hitting...
gabrigcl
I've found a solution to my needs using CKEditor and overriding the native "text" component creating my own. My text component now is a div with a css class that identifies the component: Now, typing ENTER does not create a new component....
#760January 15, 2018by raphaelraj10352 answers
we didn't find any mode to contact you , so we had generated issue over here, please feel free to close it we also into startup mode, we are interested to discuss further on this
artf
Hi @raphaelraj1035 GrapesJS is framework-agnostic so you can use it wherever you want
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.
#759January 15, 2018by gordon-matt3 answers
Could someone please let me know the required format of the response from the storage save action? I originally posted an issue under the mjml repo regarding this, but there's been no answer and moreover, I think it's probably more suited to be asked here in the main GrapesJS repo (as it pertains to GrapesJS in genera...
gordon-matt
I have updated the original issue with a workaround and made a suggestion. Feel free to close either this issue or the original under the MJML repo, as per your preference.
artf
Hi @gordon-matt and apologize for the late response. As you already get it, the store expects nothing, but onResponse callback is always executed therefore you get that error. Probably just putting typeJson && text && typeof text === 'stri...
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.
#757January 14, 2018by suchithmahadi2 answers
Hello @artf , In toHTML function, How to fetch all attributes of parent & child nodes. Because i see only attribute id is fetched. Thanks.
artf
toHTML prints everything inside its component, be sure to add you attributes inside the model, not the view
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.
#755January 13, 2018by punkt22 answers
Hi, for my project i need two panels, left and right, to show blocks/layers and style simultaneously. The panel id is hard coded in the command view files (OpenBlocks, OpenLayers). It would be good if this is configurable. I can do a pull request, but i am not sure, in which files I should put the configuration (panel...
artf
I'd just add in PanelView and put some checks in PanelView.render (just to avoid those hard coded attrs), then when you create panels you just pass attributes key
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.
#754January 12, 2018by punkt22 answers
I would like to use ES6 classes in the components script attribute. When I drop the component onto the canvas the error message "_classCallCheck is not defined" appears. Component code: Error message:
punkt2
I solved the problem. It turns out babel is transforming the javascript class and calls the helper function classCallCheck which is not passed to grapesjs. In the latest version (7) of babel, you can enable the loose mode for the transform...
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.
#753January 12, 2018by vishal50332 answers
Hello, I have to change content of nth child model of component available in the editor. Lets say there is a table with 3 TR. every TR as TD and every TD has div with some content within in it. I want to replace that content with some other content. I have assigned some custom html tags to every div. How do i find tha...
artf
@vishal5033 you can make use of model.find('tr > td[something]')[0], in this way you get the model (use the v0.12.60 as it fixes some stuff related to find)
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.
#751January 12, 2018by Deepak8133 answers
Hi @artf, We found that when we download the latest grapesJs package in that traits tab are showing in different and online demo shows the traits in same style manager. Please let us know how to get the same online demo. Also,find the attached image for reference:
artf
@Deepak813 You can find the snipper here https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1366-L1397
Deepak813
Hi @artf, With this reference link, i am not able to display the traits settings in style manager along with css settings. Please help us to resolve this.
artf
@Deepak813 try to check here how to setup a custom UI