tinymce / tinymce/tinymce

Insert table with context menu + autoresize plugin causes js error

Open
#6,397 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component: ui status: escalated type: bug
Dominant language
TypeScript
Stars
16.3k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

What is the current behavior? Describe the bug

  1. Using both the table and autoresize plugin
  2. Insert a table using the context menu
  3. The table is inserted but, a js error occurs: "Uncaught Error: The component must be in a context to send: triggerEvent is not in context."

Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.

https://fiddle.tiny.cloud/f2haab/2

What is the expected behavior?
Table gets inserted and no js error occurs.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
The latest stable, 5.6.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked TinyMCE fiddle and reproduce the error using the table and autoresize plugins, then insert a table through the context menu. Trace the triggerEvent error from the reported tox-insert-table-picker element; done means the table is inserted without a JavaScript error in TinyMCE 5.6.2.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.