Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document editor in vue js no toolbar #120

Closed
shadhin-msa opened this issue Dec 23, 2019 · 2 comments
Closed

document editor in vue js no toolbar #120

shadhin-msa opened this issue Dec 23, 2019 · 2 comments
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:question

Comments

@shadhin-msa
Copy link

I have used vue components with classic & balloon worked fine. Though none of it solve my needs. I tried to use the document option for the "strikethrough" button + the look. But it doesn't work as expected. editor installed fine but without any toolbar. I find in other javascript examples user need point out the toolbar element. I didn't find any way how to do that when i am using vue. there is no directives or component for that

@Mgsy
Copy link
Member

Mgsy commented Dec 27, 2019

Hi, as you noticed, you have to put the toolbar in the container manually. It means that you should create two container elements - for the toolbar and for the editable. Please, see the following code example:

<template>
    <div class="document-editor__toolbar"></div>
    <div class="document-editor__editable-container">
        <ckeditor :editor="editor" :config="editorConfig"  @ready="onReady"></ckeditor>
    </div>
</template>

// ...

methods: {
      onReady(editor) {
          const toolbarContainer = document.querySelector(  '.document-editor__toolbar' );
          toolbarContainer.appendChild( editor.ui.view.toolbar.element );
      }
}

@Mgsy Mgsy added pending:feedback This issue is blocked by necessary feedback. type:question labels Dec 27, 2019
@shadhin-msa
Copy link
Author

shadhin-msa commented Dec 27, 2019 via email

@Mgsy Mgsy closed this as completed Jan 9, 2020
@Mgsy Mgsy added resolution:solved and removed pending:feedback This issue is blocked by necessary feedback. labels Jan 9, 2020
@Reinmar Reinmar added resolution:resolved This issue was already resolved (e.g. by another ticket). and removed resolution:solved labels Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:question
Projects
None yet
Development

No branches or pull requests

3 participants