#1628December 4, 2018by alialrabi1 answer
After deleting custom tool ( from html editor ) that contain html with Js code , the code still in the grapes editor , how i can remove it ?
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.
#1627December 4, 2018by SeongwoonHong2 answers
Hi, I'm using webpage preset and trying to have Settings sector under Style like the demo by doing this (exactly the same as demo.html) but the problem that i have is $('.gjs-trt-traits') this is null therefore, if I toggle 'Settings' under Styles, it is empty. Please let me know..Thank you! var traitsSector = $('<div...
artf
Traits are not created by default if not requested, indeed I'm doing this in the demo https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1407-L1408
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.
#1626December 3, 2018by ProfSaputo2 answers
Hello artf, I have a Problem with the Insertion Placeholder Marker. When you insert a component in a Flexbox-Parent it is always vertical (as normally required). But if you change the flex-direction property to column, the items are sorted vertically, so the Placeholder should be horizontal, as for example block items...
artf
Thanks @ProfSaputo I'll fix it 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.
#1624November 30, 2018by crypto-dump3 answers
I defined new forum block like this. I want to replace resource class with ajax response html. Currently I did it like this. The problem is Hover is not working after this replacing. The data contains several div tags. I want to make hover action working correctly for the forum_directory class.
artf
You should change the model of the component, not its view
crypto-dump
Thanks. It's working fine. But I want to add attribute something like data-gjs-selectable: false, data-gjs-editable:false to this resourceModel
artf
You can resourceModel.set({ selectable: false, editable: false })
#1623November 30, 2018by froderf3 answers
Hi @artf , this is not actually a bug but I would like to ask if there is something like global design for every blocks. for example all images has same border and border radius What I want to do isSet global design that will apply on all blocks. e.g img, button, text, columnsGlobal Design that is editable and will ap...
ProfSaputo
I think for the first Point you are searching for normal Components? https://grapesjs.com/docs/modules/Components.html#how-components-work
froderf
I did look at the link but it doesn't have what I'm looking for but I really appreaciate your help. What I'm looking for is something like this:I have a custom UI that generates this code belowNow I need this generated code to be applied o...
artf
@froderf it's up to you how to create/maintain a Design System, you can import your classes and them by changing them you will change the design on any component with that class
#1622November 30, 2018by deviserops3 answers
There is one font issue when i click on any element it not show the current font of the element, i added custom code for add my custom fonts. code work perfectly but it not show the selected font by default when i select an paragraph or any text.
jrking4
I ended up using something like the following to have Lato as a custom font and set it as my default font: this way Lato is checked by default. And of course have the body CSS declare it as your default font as well.
artf
The problem here is the computed font of the selected component. You need to have that computed font inside your list otherwise you won't see it. As already suggested by @jrking4 you can set your default font-family to the body
deviserops
i found the answer : you have to add your font in single or double quotes otherwise it wont detect the font like this because we write font in our css like : font-family: 'Oswald' html in browse auto convert single quotes to double quotes,...
#1621November 29, 2018by real-ashwin2 answers
In the demo page https://grapesjs.com/demo.html, I see that the elements are centered using a class called container-width.Where can I see the full list of classes?How do I know that I have to add container-width to center? Where is that class defined? Thanks.
artf
Where can I see the full list of classes? By using the API Selector ManagerHow do I know that I have to add container-width to center? Well, if the demo doesn't tell probably there is no reason to let you know...Where is that class defined...
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.
#1620November 29, 2018by mathiasbc2 answers
I wrote a plugin that defines a new Block for a simple headline. However when I drag and drop this block to the canvas I get the placeholder text Text Here and I am not able to edit it. What am I missing ?
artf
I get the placeholder text Text Here ??? no, it's not a placeholder text, this is what you wrote inside your table...I am not able to edit it It works here https://jsfiddle.net/7oeh2man/
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.
#1619November 29, 2018by ghost2 answers
Hi there, Great app, much appreciated that you have put this out there for the community. Just a quick question, I would like to modify the size and appearance of the different modals, ie. Export, Image upload etc. But it seems there is no unique class/ID on any of the modals. Is there an easy way to add a unique clas...
artf
You can do it by intercepting their commands
ghost
Great, thanks @artf. I will give it a go.
#1618November 29, 2018by ploutos273 answers
Hi, I'm facing as strange issue and I need your help. when I move components inside blocks, at the view model the changes successfully applied, but models it seems that grapsejs is not tracking (or I miss something), the parent components (or blocks your can check the image 1 here) are working fine but if I have inner...
artf
Please create a live demo with steps to reproduce the issue
ploutos27
Please create a live demo with steps to reproduce the issue Hi artf, thanks please give me 1-2 days to create a live demo! Thanks!
ploutos27
@artf here is the live demo: here I have also create a live video to help you understand where am facing the issue.. video link here Let me know Thank you for your help!!!