Repository navigation
Basepattern migration - #5
Merged
Merged
Conversation
pat-tinymce is now based on BasePattern: - The existing destroy method now also calls the BasePattern destroy and removes the pattern instance from the element. - The `plugins` attribute is now per pattern instance. Before, it was shared between all instances via the prototype. Breaking change for JavaScript users: the default export is now the pattern class. The jQuery plugin and the static `init($el)` method are gone. Ref: Patternslib ADR 0009 Assisted-by: Claude Opus 5.5
…ialization. When the pattern was destroyed while TinyMCE and its plugins were loading, the editor was created anyway afterwards and was never removed. Now the initialization stops when the pattern was destroyed while loading, and an editor which finished initializing after a destroy is removed again, restoring the textarea in inline mode. The inline editable element is now created after the plugins are loaded, so that nothing needs to be cleaned up when the pattern is destroyed while loading. This relies on the `destroyed` flag of BasePattern, which is set by `destroy()` since @patternslib/patternslib 9.12.0. With older versions the pattern behaves as before. Assisted-by: Claude Opus 5.5
thet
force-pushed
the
basepattern-migration
branch
from
November 29, 2026 10:08
280bafd to
8a8d08b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.