Files
Trilium/packages/ckeditor5-build-trilium/src/remove_format_links.js

8 lines
309 B
JavaScript
Raw Normal View History

// A simple plugin that extends the remove format feature to consider links.
export default function removeFormatLinksPlugin( editor ) {
// Extend the editor schema and mark the "linkHref" model attribute as formatting.
editor.model.schema.setAttributeProperties( 'linkHref', {
isFormatting: true
} );
}