Configuration, that is expected as part of the CKEditor 5 link-feature configuration.

const linkAttributesConfig: LinkAttributesConfig = {
attributes: [
{ view: "title", model: "linkTitle" },
{ view: "data-xlink-actuate", model: "linkActuate" },
],
};

ClassicEditor.create(sourceElement, {
plugins: [
LinkAttributes,
Link,
// ...
],
link: {
defaultProtocol: "https://",
...linkAttributesConfig,
},
};
interface LinkAttributesConfig {
    attributes: RegisterAttributeConfig[];
}

Properties

Properties

Configuration of attributes, which are to be handled as being part of a link, similar to href (linkHref in model).