mirror of
https://github.com/tinymce/tinymce.git
synced 2025-07-22 06:59:59 +00:00
TINY-12087: add migration guide URL (#10352)
Related Ticket: TINY-12087 Description of Changes: * Added migration URL for ToggleToolbarDrawer deprecation message * Created a constant for the migration guide URL * Updated the skipFocus deprecation message to use the new URL constant Pre-checks: * [x] ~~Changelog entry added~~ * [x] ~~Tests have been added (if applicable)~~ * [x] Branch prefixed with `feature/`, `hotfix/` or `spike/` Review: * [x] Milestone set * [x] ~~Docs ticket created (if applicable)~~ GitHub issues (if applicable):
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
// TODO: add migration URL in ToggleToolbarDrawer message #TINY-12087
|
||||
const migrationFrom7x = 'https://www.tiny.cloud/docs/tinymce/latest/migration-from-7x/';
|
||||
|
||||
const deprecatedFeatures = {
|
||||
skipFocus: 'ToggleToolbarDrawer skipFocus is deprecated see migration guide: ....',
|
||||
skipFocus: `ToggleToolbarDrawer skipFocus is deprecated see migration guide: ${migrationFrom7x}`,
|
||||
};
|
||||
|
||||
const logFeatureDeprecationWarning = (feature: keyof typeof deprecatedFeatures): void => {
|
||||
|
Reference in New Issue
Block a user