Skip to content

Can't paste in WYSIWYG #7180

@andreslucena

Description

@andreslucena

Describe the bug

As an administrator, when I paste some text in the WYSWYG editor it can't be pasted.

There's an error in the console related to HistoryOverride

To Reproduce
Steps to reproduce the behavior:

  1. Sign in as admin
  2. Go to /admin/organization/edit
  3. Copy any text, for instance "Hello world"
  4. Paste it in "Admin terms of use body"
  5. See that it isn't pasted.

Expected behavior
To be able to paste it

Screenshots
There's an exception in the console

imatge

Stacktrace

Full stack trace:
Uncaught TypeError: delta is null
  HistoryOverride http://localhost:3000/assets/decidim/editor/history_override.self-1ec3b61182b3dae417faa3e48d30278acfd1af8509d93f8115e45552f02eb099.js?body=1:46
  emit http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  e http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  t http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  createQuillEditor http://localhost:3000/assets/decidim/editor.self-1bab8705899a60a952ceda190d9f915707361ebe9e6a4b53a78e8e65e534c434.js?body=1:23
  quillEditor http://localhost:3000/assets/decidim/editor.self-1bab8705899a60a952ceda190d9f915707361ebe9e6a4b53a78e8e65e534c434.js?body=1:65
  jQuery 2
  quillEditor http://localhost:3000/assets/decidim/editor.self-1bab8705899a60a952ceda190d9f915707361ebe9e6a4b53a78e8e65e534c434.js?body=1:64
  <anonymous> http://localhost:3000/assets/decidim/admin/application.self-25f3b4671b29e7d61087f071dbd01ff6d1ddb6d18787fc4bb0210044eac66075.js?body=1:48
  jQuery 13
history_override.self-1ec3b61182b3dae417faa3e48d30278acfd1af8509d93f8115e45552f02eb099.js:46:11
  HistoryOverride http://localhost:3000/assets/decidim/editor/history_override.self-1ec3b61182b3dae417faa3e48d30278acfd1af8509d93f8115e45552f02eb099.js?body=1:46
  emit http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value self-hosted:1161
  (Async: EventListener.handleEvent)
  e http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  value http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  t http://localhost:3000/assets/quill.min.self-3098f12f957f8621ad68b3ae2c7aff30669f34ad41a0dceca6f09c205520e0c1.js?body=1:8
  createQuillEditor http://localhost:3000/assets/decidim/editor.self-1bab8705899a60a952ceda190d9f915707361ebe9e6a4b53a78e8e65e534c434.js?body=1:23
  quillEditor http://localhost:3000/assets/decidim/editor.self-1bab8705899a60a952ceda190d9f915707361ebe9e6a4b53a78e8e65e534c434.js?body=1:65
  jQuery 2
  quillEditor http://localhost:3000/assets/decidim/editor.self-1bab8705899a60a952ceda190d9f915707361ebe9e6a4b53a78e8e65e534c434.js?body=1:64
  <anonymous> http://localhost:3000/assets/decidim/admin/application.self-25f3b4671b29e7d61087f071dbd01ff6d1ddb6d18787fc4bb0210044eac66075.js?body=1:48
  jQuery 13
      mightThrow
      process
      (Async: setTimeout handler)
  resolve
      fire
      fireWith
      fire
      fire
      fireWith
      ready
      completed
      (Async: EventListener.handleEvent)
  <anonymous>
      <anonymous>
      <anonymous>

Extra data (please complete the following information):

Additional context

Seems to be related to #7070

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions