Closed besingamkb closed 4 years ago
Hi! Your styles don't work because you try to style elements with classes that don't exist. You should adjust your HTML markup to match styles and put the toolbar inside the proper container.
So, your code should look like this:
<template>
<div class="form-group row">
<div :class=fieldDivClass id="app">
<div class="document-editor__toolbar"></div>
<div class="document-editor__editable-container">
<ckeditor :editor="editor" :config="editorConfig" @ready="onReady"></ckeditor>
</div>
</div>
</div>
</template>
// ...
methods: {
onReady(editor) {
const toolbarContainer = document.querySelector( '.document-editor__toolbar' );
toolbarContainer.appendChild( editor.ui.view.toolbar.element );
}
}
@Mgsy thanks i'll give it a try.
@Mgsy thank you so much. it works
@Mgsy thanks <3
I am using CKeditor build for vue js and I want to use DecoupledEditor layout same as the example from here https://ckeditor.com/docs/ckeditor5/latest/framework/guides/deep-dive/ui/document-editor.html .. How can I achieve that? I have tried putting the design into my component styles but it seems it is not working.
here are my components code.