Discussions

Ask a Question
Back to All

Cannot add class to link

How can I add a class to a hyperlink?

Sorry, a bit short... :)

How can I add a class to a hyperlink using ckeditor? How can I add the advanced tab?

Admin

You have to look in the ckeditor documentation.
This not realy opencontent related.

I did, it seems to get overwritten somewhere. In the txt/html module it works...

Admin

Opencontent dont use the same ckeditor then in the txt/html.
So it need to be configured specific for opencontent.

I added linkShowAdvancedTab=true, but that doesn't seem to help.

Admin

AFAIK, the upload tab is DNN specific, that you cannot load in OC ATM.
The advanced tab should be possible I think, but you'll just have to look for the right configuration.
I would compare your config with one of the Ck-editor examples.
There are some example implementation here https://github.com/40fingers/OpenContent-Demo-Templates/tree/main/01.02-CkEditor-Options, but not this specific example.

Admin
Admin

This comment has been deleted

I even tried a replacement plugin a11ylink, but still... the advanced tab was NOT visible.

Admin(edited)

do you have removeDialogTabs: 'image:advanced;link:advanced' in the ckeditor config ?

or can you share your config ?

When choosing the ckeditor with config set Full (without the fancy config), the advanced tab is ALSO not visible.

Sacha, I do not have removeDialogTabs in my config.
And like I said, it also isn't visible with config set Full. Can you reproduce? I tried several sites... works in none of them.

Admin

I also tried and it's hidden by default and I did not manage to show the advanced tab.

ο»Ώ