#2337October 17, 2019by navewi3 answers
Hello, i'm trying to delete some of the default styles of the blocks. I wrote everything I changed in a plugin. I used this function to update for example the Text Components style-defaults: editor.DomComponents.addType(.....) seen here: https://grapesjs.com/docs/modules/Components.html#update-component-type Am I gett...
pouyamiralayi
Hi there! have you tried using setStyle ? cheers.
artf
I'd expect something like this to work (update style-default) Be sure to load your plugin after the mjml one
navewi
Hello @artf, thanks for your reply. this is the exact same code, that i tried out. This one works if I use "style" instead of "style-default".
#2335October 16, 2019by logeshkrishna03 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...
hellocaio
It is working for me... 🤔
hellocaio
The delete icon shows up but when you click the link is not removed, correct? Are you using the latest version of GrapesJS? What browser are you using? Are you changing any properties in the model of the default component link? Post how yo...
logeshkrishna0
here is the exact picture of the delete icon which is not working The above delete icon is not working for the anchor tag but when i add span (by inspect) to the tag it will be deleted. so i want the thing to be shorted out. could you plea...
#2332October 16, 2019by kondziu952 answers
Hi, I can not edit label in Firefox browser (v. 69.0.3). The issue occurs when I double click the component to edit it. RTE shows toolbar but changing text or attributes is unable. The web console does not show any errors. When the text is selected and I am trying to for example bold the text then in web console there...
artf
https://bugzilla.mozilla.org/show_bug.cgi?id=853519 Probably the easiest solution would be to force the View to use span tag instead of label
schmelik
This was an interesting fix but it comes with issues... spans != labels when applying padding to the labels such as bootstrap labels the padding will not be applied to a span not unless display: inline-block; is also applied to the span
#2326October 12, 2019by Uysim1 answer
I try to add properties I got warning 'decorations' sector not found I try to debug with editor.getSector('decorations') and I got undefined When I console editor.getSector('decorations') it has the decorations sector there.
artf
Probably you're placing your code before the decorations sector is loaded. Check the order of your plugins
#2314October 7, 2019by alimajedcme1 answer
Hello all, I have a template that includes outlook specific HTML as shown below: <!--[if (gte mso 9)|(IE)]><table width="100%" border="0" cellpadding="0" cellspacing="0"><![endif]--> When I import this HTML, and try to add a block above or below this specific location in the DOM, the green line showing where the compo...
artf
Probably you would need to create a custom component to handle such a case
#2313October 7, 2019by TheComputerM3 answers
I am using the latest version of grapesjs (0.15.8) and running it on Windows 10 x64 on Electron (this is not a issue with electron) and am facing a problem when I try to dynamically attach scripts to the editor iframe, I have included a link to CodePen for more on this issue. In my project I have to dynamically change...
pouyamiralayi
Hi there! see if this can help you out: cheers!
TheComputerM
Thank you very much, the fix worked, but why does it not work with jQuery?
TheComputerM
Ok thanks a lot.
#2294September 26, 2019by tom-shermanNo answers
This can replicated in the demo: https://grapesjs.com/demo.htmlDrag in a text nodeDouble click to activate the RTEDrag the text component into another positionSelect another component The component is removed and the following error is logged to the console:
#2291September 25, 2019by brentonkelly1982No answers
[BUG]: Hi! I'm having a problem with the integrated color picker. When I click on a text component, go to the style manager, click on my character group, and finally click to launch the color picker, I'm getting a "Cannot read property 'length' of undefined" JavaScript error. You can see my issue here. I'm currently u...
#2284September 21, 2019by benvmatheson1 answer
I'm not sure if this is a bug, or if I'm just misunderstanding usage. Click component1 -> add class1 --> click the checkmark to deselect class1 on component1. Click component2 -> add class1 class1 will already be deselected. If you click the checkmark, then click component1, the checkmark for class1 is now selected on...
artf
No, it's not for disabling classes on components (in that case you have to remove it) but for changing the selector in Style Manager, so you can change what you need to style
#2277September 18, 2019by zgeistNo answers
Notice some probleme with addType functionality If I create some custom type like this: When we add component widget on page , it work good But after save content to the server and reload page custom type doesn't apply because Parser don't have this type^ use only default types, so in widget type don't call isComponen...