#644December 14, 2017by Geczy3 answers
From fontawesome 4. Would be a good opportunity to make fa5 a peer-dependency this time as well, so people aren't including it twice Some icons need to be replaced is the only migration
artf
Hi Matt, we're already planning to remove Fontawesome from the core and use instead SVGs for icons :)
antman3351
Hello, I'm currently testing / early development integrating GrapesJs into an existing web application that's using FontAwsome 5.12 (I'm really impressed with GrapesJs especially with how extendable it is 👍👌) I'm just leaving this as a n...
Geczy
PS, FA5 uses SVGs ;)
#643December 14, 2017by tlatforlz3 answers
Hi, I'm using Basic Extensions Extensions in Grapesjs. I want hide "Video Block" in this Extensions. How I can do it ? Thanks.
artf
Actually there is an option for the purpose
hoainam12k
Open src/blocks.js. Remove line 95 -> 109 (line 95 start with if (blocks.indexOf('video') >= 0) {)Open src/index.js, line 7: remove 'video', Rebuild package. I guess it will work!
tlatforlz
Thanks you @artf
#642December 14, 2017by hoainam12k3 answers
I can't set background color to black with spectrum color picker. Only work if I type hex value. Thank you for great framework!
artf
O.o weird... I tried this and everything seems ok https://jsfiddle.net/3bprucnv/2/
hoainam12k
You must drag new block (text for example) and change background color. It does not happen with blocks already there when you load the page. Same problem on your demo and code from Github but It's ok on your jsfiddle link (I tried to add n...
alemenciones
@hoainam12k I have the same problem, did you find fix?
#641December 14, 2017by ajaysofto3 answers
Is there any way to apply css on specific width like (max-width:767px) so that we can make template responsive???
hoainam12k
Yes, just choose Device from top left and change the style. You can add custom breakpoint too, check API-Device-Manager page.
ajaysofto
Ok thanks for the message
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.
#640December 14, 2017by ajaysofto2 answers
We can give border on all four sides only what about if we have to give border only at bottom or top or left or right. Is there any property for that we need to define in code??
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.
#639December 14, 2017by z1lk3 answers
I'm trying to build a basic Header component that lets you select H1 to H6 with a trait. But when an option is selected, the canvas doesn't update. The change is visible in the code view, and if I move the element in the canvas with the drag tool, the tag then changes. I have been reading the API docs as well as the s...
artf
@z1lk I already added such a thing for the next release
z1lk
I'm not sure why el would be a string, but see the commit that closed the issue: https://github.com/artf/grapesjs/commit/e450cb98855d16ad819f1214350825a50e45e910 If you're using the latest Grapes version, the Component listens for a change...
artf
Yeah this is because you can't change the tag name of an existing DOM element. Probably the solution would be, on tagName change, remove and replace the node (at the same position)
#638December 14, 2017by frank-tenzing2 answers
Hi, I'm using the preset news-letter repo for investigating the Grapes.Js, how can I create multiple and use multiple plugins within the project? Cheers
artf
@frank-tenzing just pass them in plugins
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.
#637December 14, 2017by frank-tenzing3 answers
Hi @artf , We are gonna to embed this grapes editor into our portal as an Email editor. As the Email will be sent by the batch process to customers, merge tags will be implemented in order to replace the variables in the template by the actual values such as names, ages, addresses of the customers. At the moment, the...
hoainam12k
hi @frank-tenzing, I think you should do it on server side, not in the Grapes editor. For example create a manage form for merge tags and send it to Grapes with API-Rich-Text-Editor. This way you can make some merge tags are available for...
artf
we need to make the merge tags can be added from a button on the panel and then save the added tags to a config file or DB Well, this is up to you building such a thing. The user creates a tag using your New Merge Tags panel and update stu...
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.
#635December 13, 2017by HarshOB3 answers
I want to reload grapes editor to get specific changes, is there any method to reload grapes editor?
artf
specific changes what kind of changes?
HarshOB
like I pass codes explicitly to grapes. and I got my HTML and CSS while clicking on view code button on the header of grapes editor. but it wasn't shown to the editor. Once I refresh the page or reopen the same page I got the structure in...
artf
@HarshOB I didn't get exactly what do you mean with I pass codes explicitly to grapes but if you use correctly the Editor API you should see the canvas update, eg.
#634December 13, 2017by HarshOB3 answers
I made custom component like this way and used script as well then script is working fine but I am not able to select component. Is there any other way to write content with script?
artf
change this components: "<h1>hello 123</h1>",
HarshOB
I didn't get traits if I use script while creating a custom component. Is there any problem with traits?
artf
well, there are no traits inside your block... If you're trying instead to use a custom component you have to set the type