- Issue created by @mkimmet
- 🇨🇦Canada dylan donkersgoed London, Ontario@mkimmet Can you verify whether the JS library exists in your libraries directory (e.g. docroot/libraries/ckeditor5-anchor-drupal)? 
- Thanks for the quick reply Dylan! It looks like the folder docroot/libraries/ckeditor5-anchor-drupal is not there. 
- What l think is happening is that the folder docroot/libraries/ckeditor5-anchor-drupal was already present (because I had been trying to install this multiple times), and then when I ran composer require 'drupal/anchor_link:^3.0@alpha', it deleted the folder. Then when I tried removing the module, it added the folder back. Then it takes running composer require 2 times to get the folder back. It seems to be in some kind of mixed up state. Unfortunately, even when I have the folder present and the module installed, I'm still not seeing the flag button as an option. 
- 🇨🇦Canada dylan donkersgoed London, OntarioI'm going to try to run through the steps as documented with a clean Drupal site when I get the chance (probably won't be until this evening). I wrote them from memory/samples in my project and may have missed something. If you're in a hurry you can probably just grab the library directly from https://registry.npmjs.org/@northernco/ckeditor5-anchor-drupal/-/ckedito... and decompress it in the relevant folder, it just won't auto-update until you set it up the composer way. 
- 🇨🇦Canada dylan donkersgoed London, OntarioI tried installing on a clean D10 site and I can see the anchor link button when populating the toolbar in the text format. However, earlier today I did see a similar issue on another site. I haven't been able to pin down the cause though and may not for a few days (it's on my work computer). I did have some JS errors in the console unrelated to anchor_link which may have been the cause, though other toolbar icons worked fine. I don't think the issue is related to the external library after all. It shouldn't even be loaded on the admin page. As for why you had to run composer twice I suspect the issue was that before anchor_link was updated the composer.libraries.json file didn't exist or didn't have information about fetching the library, so the composer merge plugin didn't import those dependencies at first. I encountered the same issue when installing from the instructions on the module home page. I'll update them. 
- Status changed to Postponed: needs infoalmost 2 years ago 2:52pm 5 December 2023
- 🇨🇦Canada dylan donkersgoed London, OntarioIt appears I didn't actually have the module enabled on the site where I noticed this. So unable to reproduce the issue so far. If you could provide steps to reproduce with a clean Drupal site I may be able to help. 
- Thanks Dylan, I'll give it another try and start from the beginning and get back with you. 
- Status changed to Closed: works as designedalmost 2 years ago 10:03pm 6 December 2023
- Somewhere along the way I must have either disabled the module or never enabled it like you had experienced. After I installed the module the flag showed up. The empty anchor tags that I have in my content are disappearing now, but that was something I know others were working on and so I'll close this ticket and look into that.