Y
Y
Yaroslav2019-05-16 09:24:12
CKEditor
Yaroslav, 2019-05-16 09:24:12

How to install only one font for CKEditor 5 for vuejs?

The actual font family should only be Times New Roman by default, no matter which one is copied into the editor window. I can't figure out how to call

<ckeditor v-model="body"
                        :editor="editor.type"
                        @ready="onReadyEditor"
              />

onReadyEditor (ckeditor) {
      const container = ckeditor.sourceElement.closest('.document-editor')
      const toolbarContainer = container.querySelector('.document-editor__toolbar')
      const editorContainer = container.querySelector('.document-editor__editable-container')
      toolbarContainer.appendChild(ckeditor.ui.view.toolbar.element)
      editorContainer.appendChild(ckeditor.ui.getEditableElement())
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question