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 { export default class InlineCodeNoSpellcheck extends Plugin {
init() { init() {
const editor = this.editor; this.editor.conversion.for('downcast').attributeToElement({
editor.conversion.for('downcast').attributeToElement({
model: 'code', model: 'code',
view: (modelAttributeValue, conversionApi) => { view: (modelAttributeValue, conversionApi) => {
const { writer } = conversionApi; const { writer } = conversionApi;
return writer.createAttributeElement('code', { return writer.createAttributeElement('code', {
spellcheck: 'false' spellcheck: 'false'
}, { priority: 5 }); });
}, },
converterPriority: 'high' converterPriority: 'high'
}); });