mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 23:59:59 +01:00
8 lines
309 B
JavaScript
8 lines
309 B
JavaScript
|
|
// 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
|
||
|
|
} );
|
||
|
|
}
|