From 61a1a7277ef3e2bfd921894f933dcfff8dfeb937 Mon Sep 17 00:00:00 2001 From: nshenderov <103522779+nshenderov@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:22:20 +0200 Subject: [PATCH] fix #31 --- admin/src/components/Input/CKEditor/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/src/components/Input/CKEditor/index.js b/admin/src/components/Input/CKEditor/index.js index fb25629..2a0bc5c 100644 --- a/admin/src/components/Input/CKEditor/index.js +++ b/admin/src/components/Input/CKEditor/index.js @@ -54,9 +54,8 @@ const Editor = ({ onChange, name, value, disabled, preset, maxLength }) => { editor={window.CKEditor5.editorClassic.ClassicEditor} config={config?.editorConfig} disabled={disabled} - data={value || ""} + data={value} onReady={(editor) => { - editor.setData(value || ""); if(config.editorConfig.WordCountPlugin){ const wordCountPlugin = editor.plugins.get( 'WordCount' );