Issue #2196Opened August 15, 2019by devgru3 reactions

[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)

simplecommerceOctober 13, 20211 reactions

@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();
      }
    }); 
Abhisheknanda1344463October 13, 20211 reactions

@simplecommerce Thank you Man. It's worked. Thanks

artfJuly 26, 20231 reactions

Closing the issue as it seems to be fixed.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.