#1694December 30, 2018by froderf3 answers
above code is not working but the below is working All i need is to apply the css rule in two class .class1 .class2{ ... color: red; ... }
artf
This is not how setClassRule is supposed to work. The first argument is only for 1 class name. Currently, there is no specific API method for your case, probably the best one, for now, is editor.CssComposer.getAll().add('.class1 .class2{.....
mailtopaul8
I need to have a new CSS rule with the combination of both ID & class but currently there is no way to do that (tried using setIdRule by adding .class after ID but didn't worked). Can you add a method like setRule which would simply accept...
artf
@mailtopaul8 I'll try to bring it in the next release
#1693December 30, 2018by renepardon3 answers
BUGAre you using the latest release (older versions are NOT supported)?0.14.50Are you facing the bug with your local copy of GrapesJS or with the current demo? It's a local copy. The used verions (including plugins) are: I'm working on MacOS and tested with latest Chrome: 70.0.3538.110 (Offizieller Build) (64-Bit)What...
artf
All elements were deleted but there is still an empty div-container in the viewport You don't explain steps to reproduce this issue, but please check in Layers first. I'm pretty much sure you don't delete some kind of wrapper, which has no...
renepardon
Hi @artf even with the provided link https://gist.github.com/renepardon/91db8b10a1dea1f8d0d855af945c89a8 you were not able to reproduce it?
artf
I can't reproduce it due to missing resources (and as I said, it's probably a problem with your files...)
#1692December 28, 2018by Yamakasi3 answers
Is it possible to create predefined content blocks with data you put in from your backend and which the user cannot change and only place or move in it's "webpage" ? I'm trying to find a way to have a user creating pages based on content that is made available by what I provide him and be able to use.
arthuralmeidap
Yes, it is. I can see, at least, one way to achieve this. You could create a new non-editable component and use it to create your own custom blocks. PS: I don't remember if you can add non-editable blocks. If it's possible to do that, you...
artf
@arthuralmeidap correct, @Yamakasi you can set editable as false on any text Component. BTW that wiki is outdated, you can find all the documentation here: https://grapesjs.com/docsComponent: https://grapesjs.com/docs/modules/Components.ht...
Yamakasi
Hi Guys! Sorry for the late response! I can work with that, clearly, thanks! Have a good 2019!
#1691December 28, 2018by AkibDeraiya1232 answers
Hello @artf , How can i access the variable as well functions which is outside of the script. My code is like, I am using angular.js(Angular1). And the above code is for the controller file. Can you please assist me how can i use this global variable as well function in my script?
artf
You can't, they're not in the same context, read carefully this page https://grapesjs.com/docs/modules/Components-js.html You need to copy your global variables inside the script property or you can inject them in the canvas as a dependecy
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.
#1690December 28, 2018by charlietoleary2 answers
Hi, It appears that the icons / images for the flexbox properties are missing (row, column, etc). These icons are present on the demo page of grapesJS: although it appears that these are hosted directly within the demo, rather than grapesJS itself. This issue might have more of a home in the grapesjs-blocks-flexbox re...
artf
I've just made use of them for the demo page, you copy the code from here: https://github.com/artf/grapesjs/blob/gh-pages/demo.html
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.
#1689December 28, 2018by ramachandranvenkat3 answers
https://grapesjs.com/docs/modules/Components-&-JS page not found
adamlc
The link is in the Components & JS section for the Component Manager - https://grapesjs.com/docs/modules/Components.html#components-js
arthuralmeidap
You can find some documentation here: https://github.com/artf/grapesjs/wiki/Components-&-JS
artf
@ramachandranvenkat where did you get that link? The correct one is https://grapesjs.com/docs/modules/Components-js.html
#1688December 27, 2018by vitanshu2 answers
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...
vitanshu
this issue is valid.
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.
#1687December 27, 2018by momu-20161 answer
thank you so much!
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.
#1686December 27, 2018by Sridhar-M2 answers
I am trying to use basic Grapesjs editor to CMS. Here's my code: I have installed the grapesjs using NPM. Later I tried running this html file in the local, as expected the output was Grapesjs editor. I used this same file in CMS and I am getting grapesjs is not defined.
artf
I just copy pasted your code and everything works as expected https://jsfiddle.net/mxdLpe0k/
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.
#1685December 26, 2018by gabewill2 answers
hi there, few days ago I started to research about sending some values from an Angular modal (which is invoked at the front of the grapes editor) to the Editor itself, in this case I want to send some images from my custom Angular AssetManager, to the editor, in order to use those images for building the website. Is t...
artf
You can manage GrapesJS assets via Asset Manager or if you want you can even replace the built-in one (find more about this here #491)
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.