#1051April 16, 2018by maxtacco3 answers
Hi @artf, after the latest upgrade (0.14.9) some of my commands that rely on the results of other commands fail. This happens because of the changes in https://github.com/artf/grapesjs/commit/98896c0e833500f35f377a14bead0ea966437d6d It looks like Editor's runCommand and stopCommand expect a result but CommandAbstract'...
maxtacco
Created a pull request: https://github.com/artf/grapesjs/pull/1052
artf
Ops, my oversight ๐ Hope to release soon with this fix
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.
#1049April 16, 2018by dsgh1 answer
I'm configuring grapesjs in a way to allow users to edit the html and css source (by calling setComponents and setStyle respectively). There is an issue regarding the storeManager where the html is stored correctly, but the css is not. Here is a fiddle showing this: https://jsfiddle.net/szLp8h4n/189/Steps to reproduce...
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.
#1048April 16, 2018by HarshOB2 answers
I have visited grapes live demo and found out that there can be two ways to create checkbox. As you can see if I checked required checkbox then it will generate only required in attribute and if I checked checked then it will generate checked="checked" as an attribute. what is the way to generate cheched="checked".
artf
Released a new grapesjs-plugin-forms version with the fix
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.
#1047April 16, 2018by faizansaiyed3 answers
Hey, I'm using CDN link for grapes js from unpkg.com In my project, I've used custom trait as a drop-down select menu which changes HTML using model.components. But today, the value is not reflecting in editor html.
faizansaiyed
When I used the previous version of GrapesJS, it works fine. [Edit] Not working in Latest @ v0.14.9, but working fine in v0.14.6
artf
Can you show me please your implementation of that trait? A live demo with jsfiddle it's even better
no-response[bot]
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...
#1044April 15, 2018by adib183 answers
hello when a image block drop to editor i hide the default asset manager and display my custom asset manager: fot this i have no problem.but when a image select on my custom asset manager i change src from image element in the editor with jquery. jQuery('iframe').contents().find('img.ineditor').attr('src','customurl')...
artf
Correct your custom asset manager implementation, it's not reliable (eg. if the user double click on the image you'll still see the default one). Follow this #491 and the problem with the src will be fixed
adib18
thanks a lot.i correct asset manager with this: and use this when select a image in custom asset manager assettarget.set('src', 'srcimagefromcustomasset_manager'); thanks for your great work.
Stejsi
Hello, i am used this solution, and it works, but now i am not able to asset background-image in Style Manager. It use custom function spreadUrl(), but i dont know how to call it without modify Grapesjs core. Thanks for help!
#1043April 15, 2018by leobeal2 answers
First, thanks a lot for this! It's an amazing piece of software. I've been playing around with grapesjs, and few questions popped up, would appreciate if you guys could help me.For my use case, I would not want to save the css, I would prefer have it already defined and let my users just play around with the existent...
artf
For my use case, I would not want to save the css, I would prefer have it already defined and let my users just play around with the existent options. Although, I've seen that, let's say, when inserting a map, a new specific class is creat...
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.
#1041April 13, 2018by tommedema3 answers
I'd like to suggest a feature that can be enabled through config: styleAsImportant: true (defaults to false, i.e. non-breaking). I thought this was already possible by configuring the cssComposer, though I've now learned that this is not the case (see below for an explanation). I am working with templates that sometim...
tommedema
added PR at #1056
artf
It might be a good idea, but what about improving those events (eg. pass model/pr to callbacks) to allow such customizations
artf
@tommedema Components and CssRules implement Styleable, therefore you would get it in all case. do you mean that we'd have to then write plugins to listen to those events and add additional styling to the component? Not additional, you ove...
#1039April 12, 2018by dsgh1 answer
version: 0.14.8 I marked this as a bug, but it could be understood as a missing feature as well. Basically, grapesjs-blocks-bootstrap4 has some traits with an empty name, given that those traits set the (bootstrap) classes of the elements. The problem is that, as I understand it, grapesjs did not expect traits to have...
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.
#1037April 12, 2018by dsgh2 answers
version: 0.14.8Steps to reproduce the bugUse the grapesjs-blocks-bootstrap4 plugin.Use the index.html example there - Keep the default devices (which include one defined as 100%)Add any block with classes (eg Container)Click that added block in the editor canvas.This results in an error: Uncaught DOMException: Failed...
maxtacco
This is probably related to https://github.com/artf/grapesjs/issues/896. I guess the logic should be adjusted to handle different types of units, i.e px, em, % etc.
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.
#1034April 12, 2018by vladbpython3 answers
Good day, i have component, have block i have Trait on listen changes, how can I add "h1 " inside that block "'<div class="container" style="min-height:10px;"></div>". How to add tag inside this model like:
artf
Given the current model you can add other components in this way model.components('<h1>Hello world</h1>')
ionic666
@vladbpython hi,do you solve this problem?i also want to know how to drag one element into parent element.
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.