GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#1148May 31, 2018by dwengticorp2 answers
0 reactions

Script in component get messed up, any idea?

I created a component like const TWITTERTYPE = 'TWITTER'; domc.addType(TWITTERTYPE, { model: defaultModel.extend({ defaults: { ...defaultModel.prototype.defaults, droppable: false, account: 'OntarioAlliance', widgetwidth: 425, widgetheight: 525, traits: [ { label: 'Account', name: 'account', changeProp: 1, }, { label:...

artf

If you use any kind of minifier, the script is affected too. You can set the script as a string if you need to show the complete code to the user

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.

#1146May 30, 2018by sura2k3 answers
1 reactions

Adding traits to wrapper

I found a way to add traits to wrapper via init function, But I had to add other wrapper configs such as emovable, copyable, etc. Since wrapper is only a config element I hope this is the default behavior. However if there is a way to just add traits[] without other properties, how it could be done? Also I did followi...

artf

But I had to add other wrapper configs such as emovable, copyable, etc. Since wrapper is only a config element I hope this is the default behavior. However if there is a way to just add traits[] without other properties, how it could be do...

sura2k

I was using 0.14.5. It is working nicely with 0.14.15. Thanks for the tip and sorry to bother without testing it against latest version.

betacar

@sura2k How did you extracted the wrapper's trait values after they're set? /cc. @artf

#1145May 29, 2018by milapshah153 answers
0 reactions

Upload Images to Remote DB

Hello Everyone I was searching for the documentation where I can have user to select the image from its local and then the image should be stored in the SQL DB.Can you point me to the correct resources to achieve the same. How will I get base64 of the files which are selected Warm regards Milap

artf

All you need to know about the argument is here

milapshah15

@artf Thanks for closing this.I implemented the same and its working like a charm.

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.

#1144May 29, 2018by fernandoagarcia3 answers
0 reactions

[Question]: Custom property to change multiple settings

Is there a way to extend a current property or create a new one to change multiple properties? I have a component in which I would like to change font-size and padding-left, padding-right etc within one property setting using a radio. But I noticed there is only one value set per option. Is there a way to change multi...

artf

Hi Fernando, you can find more about the Style Manager API here

fernandoagarcia

@artf My apologies. I meant to say that I would like to target width, padding-left, padding-right within one single property. Perhaps using a radio. I couldn't find an example of that in the docs. Was wondering if it was possible.

artf

Nope, style manager works per property. But you can create custom behaviors with Traits, in your case you can change the style

#1143May 29, 2018by ssabrewolf2 answers
1 reactions

How to enable progamatic placeholder block insert

Hello grapesjs Team I succesfully created a component with traits and a block to insert it, when i drag n drop the block there is a green line placeholder which works as guide helper for the user to insert components as seen here , this line helper only appears on block drag n drop operation, is it possible to trigger...

artf

No, unfortunately, there is no way to trigger d&d in that way, something similar you can do with a selected component in canvas via editor.runCommand('tlb-move') but not with blocks

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.

#1142May 29, 2018by ionic6662 answers
0 reactions

how to update the model

hi ,now I'm implementing to change my table. i use this:this.selected.components('<table><tbody>'+tbodys+'</tbody></table>') but there has one more table and after saving ,the redundant table has changed its site.

artf

Obviously, if you add rows on init every time, you will get them any time you refresh the page

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.

#1141May 29, 2018by inventorbit2 answers
2 reactions

[Question] - How to extend the existing traits and render the changes in canvas?

I am trying to write a plugin to manage all the element properties of Boostrap Blocks. If someone clicks on the button it will show button related properties like button colors, size, etc... (based on default bootstrap classes) The following code - modifies the button classes and settings got stored in the model howev...

artf

You don't need to update the view in this case, just change the classes inside the model. All you need is this

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.

#1140May 28, 2018by TclasenITVT3 answers
1 reactions

[BUG] IE11 Newsletter Demo not working

General Information I'm trying the the current demo on http://grapesjs.com/demo-newsletter-editor.html. The webpage demo works without a problem but the newsletter demo fails. I am using IE 11 on Windows 10. IE Version is 11.1088.15063.0, updateversion is 11.0.65 (KB4103768).What happens As seen in the screenshot the...

TclasenITVT

@artf thank you a lot for fixing this 👍

shareefhiasat

@TclasenITVT please edit steps to reproduce and add this link Test Browser online check IE 11 online grapesjs link @artf its working on Edge IEs ( version 20 in my case ) Regards

TclasenITVT

@shareefhiasat are you satisfied with the way I edited the steps to reproduce?

#1139May 28, 2018by ionic6661 answer
0 reactions

use built-in table components

i want to ask your opinion for how to use built-in table components

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.