You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/migration-from-4x.adoc
+75-24Lines changed: 75 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,24 +29,64 @@ content_css: "dark",
29
29
30
30
=== Plugin Ecosystem
31
31
32
-
// The contextmenu plugin was absorbed into core, the options still works, see https://www.tiny.cloud/docs/tinymce/latest/contextmenu/. not sure why this is mentioned as removed.
* **Core Integrations**: Many plugins are now part of the core (e.g., `paste`, `hr`, `noneditable`, `table`).
35
-
* **Premium Only**: Plugins like `spellchecker`, `tableofcontents`, `mediaembed` are now premium.
32
+
The {productname} plugin ecosystem was significantly restructured in version 6.0, with several plugins being removed, folded into the core, or reclassified as premium features. The following breakdown clarifies the status of each affected plugin.
36
33
37
-
Plugin Migration Examples:
34
+
* **Removed Plugins** (no longer available as of {productname} 6.0):
35
+
** `colorpicker`: Deprecated in 5.0; functionality absorbed into core. Removed in 6.0.
36
+
** `contextmenu`: Deprecated in version 5.0 following the integration of context menu functionality into the core editor. Removed in version 6.0. For more information, see the link:https://www.tiny.cloud/docs/tinymce/latest/contextmenu/[contextmenu documentation].
37
+
** `tabfocus`: Removed in 6.0. Keyboard navigation via Tab is now handled by the browser and editor core.
38
+
** `bbcode`: Deprecated in 5.9.0. Removed in 6.0.
39
+
** `fullpage`: Deprecated in 5.9.0. Removed in 6.0.
40
+
** `legacyoutput`: Deprecated in 5.9.0. Removed in 6.0.
41
+
** `spellchecker`: Deprecated in 5.9.0. Removed in 6.0. Use `browser_spellcheck: true` or the premium xref:introduction-to-tiny-spellchecker.adoc[Spell Checker] plugin.
42
+
** `template`: Removed in {release-version}. Integrators are encouraged to migrate to the premium xref:advanced-templates.adoc[Templates] plugin.
38
43
39
-
* `contextmenu` (Removed in v5):
40
-
** Replace with browser-native context menus or custom menu logic.
44
+
* **Integrated into Core**:
45
+
** `paste`, `hr`, `noneditable`, `table`, `print`, and `contextmenu`: These plugins were absorbed into the {productname} core and no longer require separate installation.
46
+
47
+
* **Now Premium Only**:
48
+
49
+
** `spellchecker`, `editimage`, `mediaembed`, `tableofcontents`: These features are available through premium plugins.
50
+
51
+
.Plugin Migration Examples
52
+
53
+
* `contextmenu` (removed in v6):
54
+
** Use browser-native context menus or custom logic.
41
55
** Consider using link:https://www.tiny.cloud/docs/tinymce/latest/apis/tinymce.editor.ui.registry/#addContextMenu[editor.ui.registry.addContextMenu] for custom right-click actions.
42
-
* `bbcode` (Removed in v6):
43
-
** Replace with custom parsing or server-side processing if needed.
44
-
* `fullpage` (Removed in v6):
45
-
** No direct replacement. Use custom templates or server-side processing for full HTML documents.
46
-
* `template` (Removed in v{release-version}):
47
-
** Use premium xref:advanced-templates.adoc[advtemplate] or implement custom modal dialogs for templating.
48
-
* `textcolor` (Removed in v6):
49
-
** Use `forecolor` and `backcolor` buttons instead.
56
+
* `bbcode` (removed in v6):
57
+
** Implement custom parsing or server-side processing if BBCode support is required.
58
+
* `fullpage` (removed in v6):
59
+
** Use custom templates or server-side logic to handle full HTML documents.
60
+
* `template` (removed in v{release-version}):
61
+
** Use the premium xref:advanced-templates.adoc[advtemplate] plugin or implement custom modal dialogs.
62
+
* `textcolor` (removed in v6):
63
+
** Use the `forecolor` and `backcolor` toolbar buttons for text color functionality.
64
+
65
+
[NOTE]
66
+
====
67
+
If you used the following toolbar buttons or menu options, they have changed names across major {productname} versions. Please refer to the release notes for each version for complete migration details.
68
+
69
+
{productname} 5 → {productname} 6:
70
+
* `formatselect` → `blocks` (toolbar item)
71
+
* `blockformats` → `blocks` (menu item)
72
+
* `styleselect` → `styles` (toolbar item)
73
+
* `formats` → `styles` (menu item)
74
+
* `fontselect` → `fontfamily` (toolbar item)
75
+
* `fontformats` → `fontfamily` (menu item)
76
+
* `fontsizeselect` → `fontsize` (toolbar item)
77
+
* `fontsizes` → `fontsize` (menu item)
78
+
* `imagetools` → `editimage` (plugin and related toolbar items)
79
+
* `toc` → `tableofcontents` (plugin, menu item, and toolbar item)
* `InsertOrderedList` and `InsertUnorderedList` commands were removed from the core and are now provided by the `lists` plugin.
84
+
* Default text pattern triggers were updated to activate on `Space` instead of `Enter`. A `trigger` property was added to configure block-level text pattern behavior.
85
+
86
+
Refer to the latest release notes at https://www.tiny.cloud/docs/tinymce/latest/release-notes/ for further details.
87
+
====
88
+
89
+
TIP: Always refer to the latest plugin documentation at link:https://www.tiny.cloud/docs/plugins/ for up-to-date availability and migration guidance.
50
90
51
91
.Example:
52
92
[source,js]
@@ -61,7 +101,7 @@ plugins: ["lists link image table code"],
61
101
=== Content Structure
62
102
63
103
* **Removed**: `forced_root_block: false`.
64
-
** **Requirement**: All content must be wrapped in block elements (e.g., <p>).
104
+
** **Requirement**: All editor content must be enclosed in block elements (e.g., `<p>`).
65
105
66
106
.Example:
67
107
[source,js]
@@ -74,19 +114,30 @@ forced_root_block: "p"
74
114
75
115
=== Configuration Changes
76
116
77
-
// multiple toolbars still work https://www.tiny.cloud/docs/tinymce/latest/toolbar-configuration-options/#toolbarn not sure why this is mentioned as decricated
78
-
* **Deprecated**: toolbar1, toolbar2, theme, skin, mobile configurations.
79
-
** **New Options**: Consolidate toolbar settings and use new options like xref:content-filtering.adoc#sandbox-iframes[sandbox iframes], xref:content-filtering.adoc#convert-unsafe-embeds[convert_unsafe_embeds], and xref:accessibility.adoc#highlight_on_focus[highlight_on_focus].
117
+
* **Removed in {productname} 6.0**: Legacy mobile theme was removed, but mobile-specific configuration is still supported through the `mobile` option.
118
+
* **Default Changes in TinyMCE 7.0**:
119
+
* xref:content-filtering.adoc#sandbox-iframes[sandbox iframes]: Now defaults to `true` (adds sandbox attribute to iframes)
120
+
* xref:content-filtering.adoc#convert-unsafe-embeds[convert_unsafe_embeds]: Now defaults to `true` (converts object/embed elements to safer alternatives)
121
+
* xref:accessibility.adoc#highlight_on_focus[highlight_on_focus]: Now defaults to `true` (adds focus outline to editors)
122
+
* **New Options in {productname} 7.0**:
123
+
* xref:license-key.adoc[license_key]: Must be set to `gpl` or a valid license key
124
+
* xref:content-filtering.adoc#sandbox-iframes-exclusions[`sandbox_iframes_exclusions`]: List of URL hosts to exclude from iframe sandboxing
// The contextmenu plugin was absorbed into core, the options still works, see https://www.tiny.cloud/docs/tinymce/latest/contextmenu/. not sure why this is mentioned as removed.
32
-
* **Moved to Core**: `paste`, `hr`, `table`, `noneditable`, `nonbreaking`.
* **Premium Only**: `mediaembed`, `toc` (renamed to `tableofcontents`), `advtemplate`.
31
+
=== Plugin Ecosystem
32
+
33
+
The {productname} plugin ecosystem underwent a significant overhaul starting in version 6.0, with many plugins either removed, integrated into the core, or made premium-only. The following summarizes these changes.
34
+
35
+
* **Removed Plugins**:
36
+
** `colorpicker`: Deprecated in 5.0; functionality absorbed into core. Removed in 6.0.
37
+
** `contextmenu`: Deprecated in version 5.0 following the integration of context menu functionality into the core editor. Removed in version 6.0. For more information, see the link:https://www.tiny.cloud/docs/tinymce/latest/contextmenu/[contextmenu documentation].
38
+
** `tabfocus`: Removed in 6.0. Keyboard navigation via Tab is now handled by the browser and editor core.
39
+
** `bbcode`: Deprecated in 5.9.0. Removed in 6.0.
40
+
** `fullpage`: Deprecated in 5.9.0. Removed in 6.0.
41
+
** `legacyoutput`: Deprecated in 5.9.0. Removed in 6.0.
42
+
** `spellchecker`: Deprecated in 5.9.0. Removed in 6.0. Use `browser_spellcheck: true` or the premium xref:introduction-to-tiny-spellchecker.adoc[Spell Checker] plugin.
43
+
** `template`: Removed in {release-version}. Integrators are encouraged to migrate to the premium xref:advanced-templates.adoc[Templates] plugin.
44
+
** `imagetools`: Removed in 6.0.
45
+
46
+
* **Integrated into Core**:
47
+
** `paste`, `hr`, `table`, `noneditable`, `nonbreaking`, `print`, and `contextmenu`: These plugins were absorbed into the {productname} core and no longer require separate installation.
48
+
49
+
* **Now Premium Only**:
50
+
** `spellchecker`, `editimage`, `mediaembed`, `tableofcontents`: These features are available through premium plugins.
51
+
** `toc`: Renamed to `tableofcontents` and now premium.
52
+
** `advtemplate`: Replaces the `template` plugin for advanced templating use cases.
35
53
36
-
Plugin Migration Examples:
54
+
.Plugin Migration Examples
37
55
38
-
* `contextmenu` (Removed in v5):
39
-
** Replace with browser-native context menus or custom menu logic.
56
+
* `contextmenu` (removed in v6):
57
+
** Use browser-native context menus or custom logic.
40
58
** Consider using link:https://www.tiny.cloud/docs/tinymce/latest/apis/tinymce.editor.ui.registry/#addContextMenu[editor.ui.registry.addContextMenu] for custom right-click actions.
41
-
* `bbcode` (Removed in v6):
42
-
** Replace with custom parsing or server-side processing if needed.
43
-
* `fullpage` (Removed in v6):
44
-
** No direct replacement. Use custom templates or server-side processing for full HTML documents.
45
-
* `template` (Removed in v{release-version}):
46
-
** Use premium xref:advanced-templates.adoc[advtemplate] or implement custom modal dialogs for templating.
47
-
* `textcolor` (Removed in v6):
48
-
** Use `forecolor` and `backcolor` buttons instead.
59
+
* `bbcode` (removed in v6):
60
+
** Implement custom parsing or server-side processing if BBCode support is required.
61
+
* `fullpage` (removed in v6):
62
+
** Use custom templates or server-side logic to handle full HTML documents.
63
+
* `template` (removed in v{release-version}):
64
+
** Use the premium xref:advanced-templates.adoc[advtemplate] plugin or implement custom modal dialogs.
65
+
* `textcolor` (removed in v6):
66
+
** Use the `forecolor` and `backcolor` toolbar buttons for text color functionality.
67
+
68
+
[NOTE]
69
+
====
70
+
If you used the following toolbar buttons or menu options, they have changed names across major {productname} versions. Please refer to the release notes for each version for complete migration details.
71
+
72
+
{productname} 5 → {productname} 6:
73
+
* `formatselect` → `blocks` (toolbar item)
74
+
* `blockformats` → `blocks` (menu item)
75
+
* `styleselect` → `styles` (toolbar item)
76
+
* `formats` → `styles` (menu item)
77
+
* `fontselect` → `fontfamily` (toolbar item)
78
+
* `fontformats` → `fontfamily` (menu item)
79
+
* `fontsizeselect` → `fontsize` (toolbar item)
80
+
* `fontsizes` → `fontsize` (menu item)
81
+
* `imagetools` → `editimage` (plugin and related toolbar items)
82
+
* `toc` → `tableofcontents` (plugin, menu item, and toolbar item)
* `InsertOrderedList` and `InsertUnorderedList` commands were removed from the core and are now provided by the `lists` plugin.
87
+
* Default text pattern triggers were updated to activate on `Space` instead of `Enter`. A `trigger` property was added to configure block-level text pattern behavior.
88
+
89
+
Refer to the latest release notes at https://www.tiny.cloud/docs/tinymce/latest/release-notes/ for further details.
90
+
====
91
+
92
+
TIP: Always refer to the latest plugin documentation at link:https://www.tiny.cloud/docs/plugins/ for up-to-date availability and migration guidance.
** **Requirement**: All content must be wrapped in block elements (e.g., `<p>`).
107
+
** **Requirement**: All editor content must be enclosed in block elements (e.g., `<p>`).
64
108
65
109
.Example:
66
110
[source,js]
67
111
----
68
112
tinymce.init({
69
-
selector: "textarea",
70
-
forced_root_block: "p"
113
+
selector: "textarea",
114
+
forced_root_block: "p"
71
115
});
72
116
----
73
117
74
-
=== API and Initialization Changes
118
+
=== Configuration Changes
119
+
120
+
* **Removed in {productname} 6.0**: Legacy mobile theme was removed, but mobile-specific configuration is still supported through the `mobile` option.
121
+
122
+
* **UI API Updates**:
123
+
** Update custom plugins to use `+editor.ui.registry.*+`.
124
+
** Replace deprecated methods like `+editor.addButton+`, `+editor.addMenuItem+`, and `+editor.windowManager.open+`.
75
125
76
-
// multiple toolbars still work https://www.tiny.cloud/docs/tinymce/latest/toolbar-configuration-options/#toolbarn not sure why this is mentioned as decricated
77
-
* **Deprecated**: toolbar1, toolbar2, theme, skin, mobile configurations.
78
-
* **New Options**: Consolidate toolbar settings and use new options like xref:content-filtering.adoc#sandbox-iframes[sandbox iframes], xref:content-filtering.adoc#convert-unsafe-embeds[convert_unsafe_embeds], and xref:accessibility.adoc#highlight_on_focus[highlight_on_focus].
79
-
* **UI API Updates**: Rewrite custom plugins using the `editor.ui.registry.*` API. Replace methods like `editor.addButton`, `editor.addMenuItem`, and `editor.windowManager.open`.
80
-
* **Promise-based Methods**: `media_url_resolver` now returns a Promise, requiring async handling.
81
-
* **Obsolete Options**: Remove `force_hex_color` and update `table_responsive_width` to `table_sizing_mode`.
126
+
* **Promise-Based Methods**:
127
+
** `media_url_resolver` now requires a `Promise` return for asynchronous handling.
128
+
129
+
* **Removed Options**:
130
+
** `force_hex_color` has been removed. Use standard CSS color declarations.
131
+
** `table_responsive_width` replaced by `table_sizing_mode`.
132
+
133
+
* **Default Changes in TinyMCE 7.0**:
134
+
* xref:content-filtering.adoc#sandbox-iframes[sandbox iframes]: Now defaults to `true` (adds sandbox attribute to iframes)
135
+
* xref:content-filtering.adoc#convert-unsafe-embeds[convert_unsafe_embeds]: Now defaults to `true` (converts object/embed elements to safer alternatives)
136
+
* xref:accessibility.adoc#highlight_on_focus[highlight_on_focus]: Now defaults to `true` (adds focus outline to editors)
137
+
138
+
* **New Options in {productname} 7.0**:
139
+
* xref:license-key.adoc[license_key]: Must be set to `gpl` or a valid license key
140
+
* xref:content-filtering.adoc#sandbox-iframes-exclusions[`sandbox_iframes_exclusions`]: List of URL hosts to exclude from iframe sandboxing
0 commit comments