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.
Steps to reproducehttps://jsfiddle.net/1cjjr02p/Click the text in editor, change background colour.Export CSS. You'll see both new and original colours exist in an order that prevents the new colour being used. ` 3.. Using same jsfilddle, it's not possible to remove CSS attribute. This is similar to #552 #986 but the...
nojacko
To elaborate a little, it seems to be when you apply styles to a box it adds the ID. When you export that and reload it to Grapes the problem happens.
artf
Related to #932 Use avoidInlineStyle: true
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.
Latest version of grapes #cfde1c1 If you supply a single @font-face, this is parsed just fine: JSFiddle example: https://jsfiddle.net/szLp8h4n/140/ Screenshot: <img width="1395" alt="screen shot 2018-04-11 at 3 19 56 pm" src="https://user-images.githubusercontent.com/331833/38646200-d5c4260e-3d9b-11e8-8c41-7c3c6b1f67d...
tommedema
@cjpollard thanks, but it seems like you are taking apart something that was stitched together for the wrong reason. I believe a better approach is to not stitch together these at-rules in the first place. @artf I have submitted a PR for t...
artf
Totally agree with you Tom, the main goal of cssComposer is just to provide a lean interface for style definitions. What we have inside CssParser right now it's actually a browser's parser and the rest of code is just a traverser. Actually...
tommedema
@artf FYI I can now reproduce this in a failing test case: After further debugging this seems to be caused by cssComposer thinking that the second rule is the same rule as the previous one and then returning the first rule: https://github....
I want to add a custom icon to the grapesjs panel at the top of the editor page. Is it possible to do this with any SVG or with text? If so, can you explain how? I've tried the following but couldn't get an icon to show: I've also tried this to use text as an icon, but couldn't get that working either: (I'm also using...
artf
At the moment, there is no label property on buttons so you can edit them only via className. BTW I like the idea, I'll make it available in the next release
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.
I'm trying to build a plugin for Grapesjs with some custom components, and I'm having trouble with triggering events and interacting with the component in the code. One problem I am having is that I added an attribute to the model for a custom text component. In the script for that text component, I change the attribu...
arthuralmeidap
Just for tests purposes, try to listen all changes on your model. try with this.listenTo(model, 'change') and see what you get.
artf
@francesca-cicileo 'change:*' is used for model's properties (eg. tagName, removable, etc.), probably you're looking for change:attributes:ATTR-NAME. Be sure to update model's properties properly (eg. model.addAttributes({ attrName: 'value...
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.
Hi, I intergrated GrapesJS to my application (asp.net MVC) and it works but sometimes GrapesJS can't render HTML. First, I clone html from another URL and add this html to GrapesJS. This works correctly. Second, I get html from GrapesJS editor and save this to file. Final, I refresh page and load content in this file...
artf
Seems like you're doing something wrong when saving/loading the template, look at the error, it's trying to use ":{"s as an attribute
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.
Hi, There is some bug related to "Drag and drop blocks are not working in IE Browser ", I didn't get better solution regarding this issue. Also there is no method to reinitialize the grapes editor. Here is my below script: grapesjs.init({ container: '#gjs', plugins: ['gjs-blocks-basic'], components: newscontent, stora...
artf
Fixed here #768 will be available in the next release
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.
Hey @artf , due to the lack of documentation I have a hard time figuring out, how to add component settings (traits ) to the Style Manager panel section as you did in the demo. Could you please give me a hint how to implement this? I think that the demo project code if open sourced would come real handy when it comes...
artf
I think that the demo project code if open sourced would come real handy when it comes to understanding of the grapesjs as a whole. It is indeed, the whole site is open sourced, you just have to switch the branch https://github.com/artf/gr...
FrciSmrci
@artf Omg, thank you. :) Not sure how I manage to miss 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.