Update ckeditor monorepo to v43 (major) #1204
Merged
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.
This PR contains the following updates:
^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0^41.0.0->^43.0.0Release Notes
ckeditor/ckeditor5 (@ckeditor/ckeditor5-adapter-ckfinder)
v43.0.0Compare Source
We are happy to announce the release of CKEditor 5 v43.0.0.
Release highlights
Merge fields
The new merge fields feature is a game-changer for creating document templates and other kinds of personalized or dynamic content. Thanks to this feature, you can insert placeholders into your content, indicating where actual values should go. These places are marked in the final content in a distinctive way, making it easy to later process the template and fill it with the actual values. The feature supports a preview mode too - you can define preview data sets, and see how the content will look like when real values are used directly in the editor. The plugin is highly customizable to fit various applications and scenarios. Finally, merge fields are fully integrated with our Export to Word, Export to PDF, and Import from Word features, both when they are used from the editor and via REST API.
We are extremely happy to share with you this highly demanded feature, and we cannot wait to listen to your feedback!
Make sure to visit our builder or documentation to learn more about the feature.
Export to Word V2 as the default version
The V2 version of the export to Word feature introduced significant improvements, optimizations, and fixes. This update enhances the overall performance, making the export process faster and more reliable, especially for large documents. Key improvements include better handling of table borders, automatic detection of Word styles from CSS, and support for more text-related CSS properties, ensuring your documents maintain their intended formatting.
Starting this version, the V2 configuration becomes the default in the
ExportWordplugin. Make sure to migrate your configuration if you are using it.Improved sidebar accessibility and navigation
We have introduced multiple enhancements to make the sidebar more accessible. Among other improvements, you can now use the Shift+Ctrl+E keystroke to move focus from the editor marker to the active annotation. When your comment reply is ready, you can quickly submit it using the new Ctrl+Enter shortcut. Also, navigation from one annotation to another is now possible by using arrow keys.
The full lists of keyboard supported actions can be reviewed in our Accessibility support guide.
Important bug fixes and improvements
This release brings notable bug fixes and improvements to enhance your editing experience.
React and Vue integrations updates
We have released new major versions of the React and Vue integrations. In both of them, we have migrated to JavaScript modules (ESM) and rewritten large parts of the codebases to support the latest versions of these frameworks and to follow the latest recommendations for writing the components.
We strongly recommend that you follow the release highlights to update to the latest versions:
MAJOR BREAKING CHANGES ℹ️
ckeditor5package in the UMD builds has been changed toCKEDITOR.ckeditor5-premium-featurespackage in the UMD builds has been changed toCKEDITOR_PREMIUM_FEATURES.exportWord.converterOptionsconfiguration should be adjusted to new API. See the migration guide.auto_paginationconfiguration option inexportWord.converterOptionsis set tofalseby default.MINOR BREAKING CHANGES ℹ️
CKBoxUtils#getWorkspaceId()andCKBoxUtils#getToken()methods now return a promise instead of a resolved value.AnnotationView#focus()will focus the first view in thecontentcollection instead of the view DOM element.Sidebar#addAnnotation()will expect the annotation view to meet theFocusableViewinterface (previously any UIView).Schemacallbacks added throughaddChildCheck()will no longer add event listeners withhighpriority and will no longer stopcheckChildevent. Instead, these callbacks are now handled onnormalpriority, as a part of the defaultcheckChild()call. This also means that listeners added tocheckChildevent onhighpriority will fire before any callbacks added bycheckChild(). Earlier they would fire in registration order. This may impact you if you implemented custom schema callback using bothaddChildCheck()and direct listener tocheckChildevent. All above is also true foraddAttributeCheck()andcheckAttributeevent and callbacks.sanitizeHtmlwas moved from thehtmlEmbedspace to top-level configuration space.config.htmlEmbed.sanitizeHtmlis now deprecated. It will still be used if it set, however we recommend updating the configuration as this property may be removed in upcoming releases.overflow: scrollstyle (previously the style was permanent).--ck-list-button-paddingcustom property has been removed from the codebase.SuggestionThreadViewtemplate was moved to a new viewSuggestionView. It may affect you if you provided customization for suggestions annotations through an extendedSuggestionThreadVieworBaseSuggestionThreadViewclass. Please review updated API documentation forSuggestionThreadView#getTemplate()andSuggestionView#getTemplate(). You can extendSuggestionViewthe same way asSuggestionThreadViewandBaseSuggestionThreadView, and provide the extended class through the newly added configuration propertyTrackChangesConfig#SuggestionView.Features
AriaDescriptionViewclass that bringsaria-describedbyfunctionality to any view.LateFocusButtonViewandLateFocusDropdownButtonViewclasses that are specific buttons, for whichfocusevent is fired aftermouseupinstead ofmousedown. This delays all focus-related actions until the button action is performed.Schema#addChildCheck()andSchema#addAttributeCheck()can now register a callback for a specific item or attribute, which should improve performance when using custom callback checks. Callback checks should be added only for specific item or attribute if possible. See the API reference. Closes #15834. (commit)config.exportWord.converterOptions.languageconfiguration property to set the language of the exported Word document. The editor's content language will be used by default.Headingplugin configuration. (commit)menuBar:specialCharactersis now by default added in "Insert" menu. Closes #16501. (commit)FocusCycler#constructor()to allow for fine-tuning of the class behavior. (commit)FocusCycler#chain()method to connect multiple focus cyclers and provide seamless keyboard navigation across complex user interfaces. (commit)KeystrokeHandler#set()to allow for fine-tuning of the helper's behavior. (commit)Bug fixes
Schema#checkChild()will now correctly check custom callback checks for each item in the context. (commit)insertcontent-invalid-insertion-positionexception is no longer thrown after pasting content containingblock element+non-paragraph+block elementelements. Closes #16321. (commit)searchTermwhen usingfindCallbackinfindcommand. (commit)<ul>or<ol>should not be removed while loading editor data. Closes #16450. (commit)pageBreakelement.Esckey press while navigating the menu bar. Closes #16683. (commit)/* #__PURE__ */comments before mixin calls to properly tree-shake unused classes. Closes #16651. (commit)menucheckboxaria roles. (commit)<label>to<span>in the color picker component to improve the accessibility. (commit)landmarks should be unique. Closes #16544. (commit)Other changes
blockAutoformatEditingand theinlineAutoformatEditingare now exported from the package index. Closes #16815. (commit)ckeditor5package in the UMD builds have been changed toCKEDITOR. Closes #16798. (commit)ckeditor5-premium-featurespackage in the UMD builds have been changed toCKEDITOR_PREMIUM_FEATURES.Schema#trimLast(). (commit)Model#insertContent()method should keep inline objects in the same auto paragraph as text nodes and other inline objects. See #16321. (commit)Schema#checkMerge()method should returnfalseif one of the elements is a limit element. See #16321. (commit)sanitizeHtmlwas moved from thehtmlEmbedspace to top-level configuration space.config.htmlEmbed.sanitizeHtmlis now deprecated.SuggestionThreadViewtemplate was moved to a new viewSuggestionView.SuggestionViewwas added to enable theSuggestionViewclass customization.LabelWithHighlightViewandButtonLabelWithHighlightViewcomponents to the UI library. (commit)filterGroupAndItemNames()helper to the UI library. (commit)SearchTextView#reset()method will also reset the scroll of itsfilteredViewto the top. (commit)Released packages
Check out the Versioning policy guide for more information.
Released packages (summary)
New packages:
Major releases (contain major breaking changes):
Minor releases (contain minor breaking changes):
Other releases:
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone US/Eastern, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.