fixed whitespace and redundant lines.

This commit is contained in:
lzinga 2025-12-03 10:12:05 -08:00
parent 52bb83e878
commit 4f6dfeb773
2 changed files with 3 additions and 4 deletions

View File

@ -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'
});