[Bug] Link element selection shows no toolbar
Question
Steps to reproduce: add Text, select a word, click on Link icon in RTE panel, select a Link.
Expected behaviour: when I select Link I expect it to display toolbar (with 'select parent' button) alongside its badge.
Actual behaviour: If a link was in startup HTML, Link is properly initialised and selecting it results in both badge and toolbar being displayed. Otherwise, if a Link was created via RTE button selecting it results in just badge being displayed.
Answers (3)
@Abhisheknanda1344463
Hi @artf @simplecommerce @devgru Any update on this. Is there any way to fix this manually? Thanks
I am not sure if it will work for you but this is what I did to work around it.
editor.on('component:selected', function(model) {
// if no toolbar detected, call init (i am using isEmpty from lodash) but you can just validate this without it
if (isEmpty(model.attributes.toolbar)) {
model.initToolbar();
}
});
@simplecommerce Thank you Man. It's worked. Thanks
Closing the issue as it seems to be fixed.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #668
When element not available to select, suggest hover and click event will select the available parent.
Hi @artf, can i have a enhancement for select command, when the cursor click or hover the element which is not selectable, then the selecti...
Issue #4323
BUG: Performance issue while dragging component to canvas when you have 2k component on canvas
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Google Chrome Version 101.0.4951.41 (Officia...
Issue #1567
rte toolbar bug
Hello all, I am using the latest grapesjs stable version (40) and I noticed the following bug in the rich text editor: If the user drags an...
Issue #1486
How to add/remove class undo manager
Hi @artf, Can you please provide the way to add/remove class in undo manager. Also,on live demo when we drag countdown and click on undo bu...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.