mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 14:34:24 +01:00
fixed whitespace and redundant lines.
This commit is contained in:
parent
52bb83e878
commit
4f6dfeb773
@ -3,14 +3,13 @@ import { Plugin } from "ckeditor5";
|
||||
export default class InlineCodeNoSpellcheck extends Plugin {
|
||||
|
||||
init() {
|
||||
const editor = this.editor;
|
||||
editor.conversion.for('downcast').attributeToElement({
|
||||
this.editor.conversion.for('downcast').attributeToElement({
|
||||
model: 'code',
|
||||
view: (modelAttributeValue, conversionApi) => {
|
||||
const { writer } = conversionApi;
|
||||
return writer.createAttributeElement('code', {
|
||||
spellcheck: 'false'
|
||||
}, { priority: 5 });
|
||||
});
|
||||
},
|
||||
converterPriority: 'high'
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user