-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working..... #1
Comments
Thanks for using it! It's been a while since I used/did this, I will try to take a look at the issue soon! |
Hello @rhysstubbs thank you for creating this plugin, it could potentially solve a lot of headaches when it comes to using CKEditor 5. The only problem is that I have the same issue. Also could I ask for a little bit more information, for example: If I add custom attributes and pass them to CKEditor, will the editor keep the custom attributes ? Will this plugin allow all of these custom (some not so) attributes to be kept? Thank you in advance! |
@zlatinszsmp |
Same issue here |
I just found why looking into code.
|
Well again not working, I have this config, and replacement won't work, nor pasting and id using source and then switch back to edit mode will remove id attributes.
|
@blackcatcjy @zlatinszsmp @daneshka @Kwaadpepper I apologise for the lack of support on this issue. This was never really used and hence it had some bugs. I've recently made some updates and tested briefly with v35.2.0. If you still need this plugin/want to use then I'd suggest trying the updated version. |
@rhysstubbs still not working button is enable but after entering id it is not attached to the element |
@vikasaswal94 Well feel free to create a codepen/fiddle to demonstrate it not working. I accept there may be issues but at the same time I'm not really able to spend much time on this. For my use case this is used for adding ids to paragraphs and headings and thats about it. Beyond that I've not done any other testing. I'm going to recommend that anyone that needs this/wants to use it in a production app that they fork it and make changes as they need. I wrote it, then never used it, and still don't. I'm happy to look at specific cases, but I'd be a bad idea expecting this to "just work" as I assure you it will not... consider it a work-in-progress. |
@rhysstubbs When the button is clicked and it has to give an ID to the element, it doesn't do it |
@rhysstubbs It doesn't give you an error to show you. |
I think I remember as I am using this, it does work only for headings (assign ID). Two things from now either the engine will allow to handle I'd on any node, either the ckeditor team did not implement that yet cause they have not anticipated this case. Maybe they will in the future. Many people will need to find a solution including me as they are migrating from ckeditor 4 |
Whatever I test, it doesn't work for headings either!! |
If it works only on the headings, my problem will be solved |
Hi @rhysstubbs thanks for the reply, i have created 1 github repo for the same can you help in that |
As I told @rhysstubbs via e-mail, I took the code of this repo and changed it to make the applying of ID attributes work. Note that it really only covers ID attributes so far. The code can be found here: https://gitlab.com/s_leu/ckeditor5-id-attributes The plugin is also included in the drupal module here: https://www.drupal.org/project/ckeditor_id_attributes |
Thank you for publish this plugin! I need it very much.
when i imported this pulgin in my ckeditor, the toolbar button has displayed, but it was not enabled.
my code is like this:
Then I can see this button in toolbar but not enable, like this:
![image](https://user-images.githubusercontent.com/8053853/138240627-dad2c850-4c37-4073-873b-db80368b423d.png)
I have tried to use command, it doesn't work too.
The text was updated successfully, but these errors were encountered: