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

Respect quill.enable #19

Open
ronnyroeller opened this issue Jun 4, 2020 · 1 comment
Open

Respect quill.enable #19

ronnyroeller opened this issue Jun 4, 2020 · 1 comment

Comments

@ronnyroeller
Copy link

I added quill-blot-formatter to a QuillJS editor. This correctly shows the controls to resize any image.
Yet, after disabling Quill via quill.enable(false), I'd expect the resizing control to be not available.

@0Shino0
Copy link

0Shino0 commented Dec 5, 2023

If you're using @vueup/vue-quill, you can disable it like this when you don't need it

    // template ... 
    <QuillEditor
      class="quill-editor-container"
      :options="options"
      :enable="isEditor_"
    ></QuillEditor>
    
    // script ...
    const options = ref({
      // debug: 'info',
      modules: {
        BlotFormatter: {} as any, 
      placeholder: '支持Markdown或者富文本',
      readOnly: false,
    })
    
    // ... 
    if (!isEditor_.value) { // When you don't need it 
      options.value.modules.BlotFormatter = undefined // 不可编辑时 禁用BlotFormatter
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants