Can I Use Ckeditor 5 Link Rel Attribute Manually In Html A Tag? - FreeCodeBlog

Last updated: Jan 19, 2022

I'm trying to use rel attribute to ckeditor 5 manually but i don't understand how can i do it? I want to use the rel attribute in my ckeditor 5 manually. I installed the ckeditor 5 link plugin and added it to the ckeditor 5 toolbar and link section but when I add a link to any text I see rel attribute in the HTML a tag. I don't really want to process this automatically. I want to do this manually from ckeditor 5 link toolbar after adding link to any text.

 

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        toolbar: {
            items: ['link'],
        },
		link: {
		addTargetToExternalLinks: true
		}
    } )
    .then( ... )
    .catch( ... );

 

Thanks.

Question Answers
Question Tags
Question Writer
guest0011
Guest (@guest0011)
Related Questions
How To Add Ckeditor 5 Placeholder In Vue Js?

Hi, can anyone help me to use ckeditor 5 placeholder in my vue js project? In fact, I installed ckeditor5 build classic editor in my vue js project... Read More

How To Add Rel Attribute Automatically In Ckeditor 5 Vue Js Link Plugin?

I want to add the rel attribute to my ckeditor 5 vue automatically. I'm trying to add rel attribute to ckeditor 5 automatically but i don't underst... Read More

How Can I Enable Rel Attribute In Ckeditor 5 Link Plugin?

I have a simple project and I added ckeditor 5 in my project. Also I added ckeditor 5 link plugin to my project. Now I want to enable rel attribute... Read More