0

Firefox でのみ発生する非常に奇妙な問題があります。

私は Meteor アプリを作成しており、Quill Editor を使用しています。http://quilljs.com/

サイトにある例では問題を再現できないため、必ずしもクイル エディターではないと思います。

したがって、テキスト ボックスに入力し、テキストを選択して [削除] をクリックすると、ブラウザは以前の URL にリダイレクトされます。テキストを削除すると、ブラウザが別のページにジャンプするだけで、ひどい経験になります。これは Firefox でも発生しますが、Chrome と Safari では安定しているようです。

契約は何ですか?クイル エディタのコードは次のとおりです...

Template.quillNote.rendered = ->
  self = @
  # This variable is used to stop updating the template when you are the one updating it
  self.noUpdate = false
  # If currently saving then push function into a queue to call later
  self.saving = false

  #Initialize Editor
  @editor = new Quill(@find('.quill-editor'),
    modules:
      'authorship':
        authorId: Meteor.user().username
        enabled: true
      toolbar:
        container: @find('.quill-toolbar')
      "link-tooltip": true,
      'image-tooltip': true
    theme: "snow"
  )

 self.editor.on 'text-change', (delta, source) ->
    if source is 'user'
      # Do not update screen while user is typing
      self.noUpdate = true
      saveDraftCallback()
4

0 に答える 0