Insert table with context menu + autoresize plugin causes js error
Nobody has claimed this yet.
- 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
- Using both the table and autoresize plugin
- Insert a table using the context menu
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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