Skip to content

INT-3358: Remove @tinymce/miniature from dependency#76

Open
tiny-ben-tran wants to merge 23 commits intomainfrom
feature/INT-3358
Open

INT-3358: Remove @tinymce/miniature from dependency#76
tiny-ben-tran wants to merge 23 commits intomainfrom
feature/INT-3358

Conversation

@tiny-ben-tran
Copy link
Copy Markdown
Contributor

@tiny-ben-tran tiny-ben-tran commented Apr 1, 2026

Description of changes:

  • Move @tinymce/miniature to devDependency so that this library can stay open sourced
  • Added tests for disabled attribute.
  • Fixed changelog entry for disabled attribute
  • Fixed running demo with ts-node crashed
  • Converted LoadTest to BBD

@tiny-ben-tran tiny-ben-tran requested review from a team, MitchC1999, TheSpyder, shanmen-tiny and soritaheng and removed request for a team April 1, 2026 03:20
@tiny-ben-tran tiny-ben-tran requested a review from a team as a code owner April 1, 2026 03:21
@tiny-ben-tran tiny-ben-tran requested review from ltrouton and removed request for a team April 1, 2026 03:21
Comment on lines +37 to +38
const pCreateEditor =
(attrs: Record<string, string> = {}, onSetup?: (editor: any) => void): Promise<{ el: EditorElement; editor: TinyMCEEditor }> => new Promise((resolve) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure miniature and/or mcagar have tools for this? Again, look to our premium tests for guidance (or I can help you dig that up if you need me to).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried VersionHooks.bddSetupVersionFromElement and then realised that the wrapper creates its own Editor instance, making the hook.editor() instance an orphan.
I also updated the tests to use as many functions from miniature/mcagar as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants