using built-in RTE and trying to add a rte custom button that when clicking, it removes current link. Could you provide me with the code please? something like this... rte.add('custom-remove-all', { icon: 'remove', attributes: {title: 'Link', class: 'gjs-rte-action'}, result: rte => rte.insertHTML(${rte.selection()})...
artf
You can use rte.exec('unlink')
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.
@art, I realize you stopped supporting your MJML project, but if you don't mind, I noticed an issue that the latest update causes. To reproduce:Go to https://grapesjs.com/demo-mjml.htmlDouble click in the middle of a text elementThe text area will highlight and possible one of the words will get selected.click again a...
kickbk
Resolved: The issue happens with the functions enableEditing and disableEditing in the mjml components. To fix, replace those functions with the new ones, however, I also update the pointerEvents to none on disable and all on enable. This...
artf
The same version of grapesjs with the same CKEditor plugin works fine here, so it seems not related to the latest version
kickbk
Let me demonstrate. I am going to double click a text field and then move around and try to click inside. This is v0.14.40 - Works This is v0.14.43 - Has the issue. And same issue on https://grapesjs.com/demo-mjml.html. v0.14.43 - has the...
Hello - quick suggestion: I'd suggest removing font-awesome from the minified css file. The reason for this is that many developers are using node - and there is a conflict with loading the font files where it says "OTS parsing error: invalid version tag". If instead you declare that grapes requires a separate install...
artf
Thanks for the request, Benjamin. Actually, we have already an open issue about this argument here, so I close this one
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 @artf i want to display my image when i drag and drop image component here is my code bm.add( 'image', { label: opt.imageBlkLabel, category: opt.categoryElementsLabel, content: { type: 'image', src: 'http://placehold.it/250x150/78c5d6/fff/', style: {color:'black'}, }, attributes: { class:'gjs-fonts gjs-f-image' } }...
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, We are trying to integrate GrapesJS in the Salesforce Lightning Platform. But it seems we are getting loads of errors. Does anyone have tried adding in the Lightning Platform? Issues are mostly related to Locker Service guidelines. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security...
artf
For integration questions SO is more valuable
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 grapesjs team, I am trying to move BlockManager, StyleManager, TraitManager etc to the left. I have tried to use appendTo but I don't know why the default panel still shows up. Is it to possible to move all things within the right sidebar to the left?. Or append them to the new html element and remove the default o...
artf
Correct, as you see I'm doing the same here: https://grapesjs.com/docs/getting-started.html#start-from-the-canvas
afdallah
Thank you for confirming
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 create New custom Tool with (default html) when draged , and i also create traits for this component when i click on checkbox excuting function (do stuff())>> the result of this function new html i want to append it to editor , i have used to select by class ( in jquery ) from editor( the default html to append to i...
artf
@alialrabi Read this before opening an issue on Github https://guides.github.com/features/mastering-markdown/ Thanks
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, when importing html-code with nested @media-queries the rules are not mapped correctly in the styles-variable. This causes styles to be broken in the result html, because some parts of the Css are just missing. for testing purpose I imported this template: To import the template I did this steps:Click the trash ic...
artf
Nested @media are not supported
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 have built a fully working page management system into the editor but I wasn't quite sure the proper way to inject the panel into the editor without doing the below code so i'm looking for some advice if this is not correct. I have a Page Plugin that I load in: The page-editor plugin basically loads in a custom pane...
artf
Hi @northkode modules are only used internally by GrapesJS, it's not something you have to deal in your plugin, just init all your stuff inside your plugin function
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.