Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

323
Visualizações
Quill Editor: cannot paste any text, input loses focus

I'm trying to paste any random text into the quill@1.3.7 editor, but all of my paste events are pretty much ignored. In addition, the cursor disappears - ie, the <div> loses focus.

Do I have to do something to get basic/default clipboard paste to work? According the docs, those should be turned on by default since they are required.

I have debug turned on, and this is what I see in Chrome.

enter image description here

Here is how I'm initializing the editor:

<div ref="editorElement" class="ql-editor" contenteditable="true"></div>
import Quill from 'quill';

@customElement('quill-editor')
export class QuillEditorComponent {

  @bindable({ defaultBindingMode: bindingMode.twoWay })  value: string;
  editorElement: any;
  editor: Quill;

  attached() { 

    var toolbarOptions = [/* removed for brevity */];

    this.editor = new Quill(this.editorElement, {
    debug: true,
      modules: { 
        toolbar: toolbarOptions,
        clipboard: {
            matchVisual: false
        }
      },
      placeholder: 'I have something to say...',
      theme: 'snow'
    });

    this.editor.root.innerHTML = this.value;
  }
}

UPDATE:

Filed an issue, as this seems to be a Chrome related issue: https://github.com/quilljs/quill/issues/3512

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda