|
1 | | -= TinyMCE for touch-enabled and mobile devices |
| 1 | += TinyMCE for Touch-Enabled and Mobile Devices |
2 | 2 | :navtitle: TinyMCE for mobile |
3 | 3 | :description: The TinyMCE rich text editing experience for mobile devices. |
4 | 4 | :keywords: mobile, tablet, phone |
5 | 5 |
|
6 | | -The mobile experience for {productname} is enabled by default and has the following differences when compared to the "desktop" experience: |
| 6 | +The mobile editing experience for {productname} is enabled by default. It differs from the desktop version in several key ways to provide a responsive and touch-optimized interface: |
7 | 7 |
|
8 | | -* Horizontal contextual menus on mobile. |
9 | | -* Side-scrolling toolbars and contextual menus on mobile. |
10 | | -* Contextual keyboard options for dialogs using xref:dialog-components.adoc#inputmode[`+inputMode+`]. |
11 | | -* xref:mobile-defaults-for-selected-options[Mobile defaults for selected options]. |
| 8 | +* Horizontal and side-scrolling toolbars and contextual menus. |
| 9 | +* Context-sensitive keyboard behavior using xref:dialog-components.adoc#inputmode[`+inputMode+`]. |
| 10 | +* Predefined mobile-specific default values for selected configuration options. |
| 11 | +* Touch gestures for accessing the context menu, depending on platform. |
12 | 12 |
|
13 | | -The mobile experience allows most of the {productname} plugins to work on mobile devices, except for: |
| 13 | +{productname} automatically detects the platform and displays an optimal UI based on screen size and device type. |
14 | 14 |
|
15 | | -* xref:introduction-to-tiny-comments.adoc[Comments]. |
16 | | -* xref:editimage.adoc[Image Editing]. |
17 | | -* xref:moxiemanager.adoc[MoxieManager]. |
18 | | -* xref:permanentpen.adoc[Permanent Pen]. |
| 15 | +[TIP] |
| 16 | +==== |
| 17 | +The native context menu remains accessible on mobile devices even when a custom {productname} context menu is configured. On iOS, this is done with a _single tap_; on Android, a _double tap_ is required. If the xref:contextmenu.adoc#contextmenu_never_use_native[`+contextmenu_never_use_native+`] option is enabled, native menu access is disabled on both platforms. |
| 18 | +==== |
19 | 19 |
|
20 | | -{productname} will detect the platform and show an optimal UI experience based on the device type and screen size. |
21 | | - |
22 | | -NOTE: iPads do not use the `+mobile+` part of the {productname} init configuration. This is due to a constraint added by Apple to return the environment as a "desktop environment" for iPads. iPad users will receive the other changes to touch functionality, such as context toolbars and context menus. |
| 20 | +NOTE: iPads are treated as desktop-class devices due to Apple's environment constraints. While the `+mobile+` configuration will not apply on iPads, touch interactions such as context toolbars and menus will still behave as expected. |
23 | 21 |
|
24 | 22 | include::partial$misc/admon-mobile-context-menus.adoc[] |
25 | 23 |
|
26 | 24 | include::partial$misc/mobile-platform-compatibility.adoc[] |
27 | 25 |
|
28 | | -== Configuring mobile |
| 26 | +== Mobile Plugin Limitations |
| 27 | + |
| 28 | +Some plugins offer limited functionality or are unsupported when used on mobile devices, particularly in inline mode. |
| 29 | + |
| 30 | +=== Known Plugin Limitations |
| 31 | + |
| 32 | +[cols="1,3", options="header"] |
| 33 | +|=== |
| 34 | +|Feature |
| 35 | +|Limitation |
| 36 | + |
| 37 | +|xref:editimage.adoc[Image Editing] |
| 38 | +|Image resizing is only available through the Edit Image dialog; in-editor resizing is not supported. |
| 39 | + |
| 40 | +|xref:introduction-to-powerpaste.adoc[PowerPaste] |
| 41 | +|Clipboard restrictions on mobile platforms prevent core PowerPaste functionality. |
| 42 | +|=== |
| 43 | + |
| 44 | +=== Unsupported Plugins on Mobile |
| 45 | + |
| 46 | +[cols="1,3", options="header"] |
| 47 | +|=== |
| 48 | +|Feature |
| 49 | +|Limitation |
29 | 50 |
|
30 | | -Add the following `+meta+` tag to the `+head+` of pages using {productname} to ensure the mobile user interface functions as intended. |
| 51 | +|xref:introduction-to-tiny-comments.adoc[Comments] |
| 52 | +|Not supported in inline mode on mobile devices. |
| 53 | + |
| 54 | +|xref:moxiemanager.adoc[MoxieManager] |
| 55 | +|Not supported in inline mode. |
| 56 | + |
| 57 | +|xref:permanentpen.adoc[Permanent Pen] |
| 58 | +|Not supported due to UX constraints on mobile. |
| 59 | + |
| 60 | +|xref:advcode.adoc[Enhanced Code Editor] |
| 61 | +|Dialog interface is not usable in mobile viewports. |
| 62 | + |
| 63 | +|xref:footnotes.adoc[Footnotes] |
| 64 | +|Inserted footnote links are not clickable after insertion. |
| 65 | +|=== |
| 66 | + |
| 67 | +== Configuring Mobile Behavior |
| 68 | + |
| 69 | +To ensure the {productname} mobile UI functions correctly, include the following `+meta+` tag in the `+<head>+` of your HTML: |
31 | 70 |
|
32 | 71 | [source,html] |
33 | 72 | ---- |
34 | 73 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
35 | 74 | ---- |
36 | 75 |
|
37 | | -To set mobile specific options, add the option to xref:themobileoption[the `+mobile+` option] configuration, such as: |
| 76 | +To customize behavior on mobile devices, use the `+mobile+` configuration option. For example: |
38 | 77 |
|
39 | 78 | [source,js] |
40 | 79 | ---- |
41 | 80 | tinymce.init({ |
42 | | - selector: 'textarea', // change this value according to your HTML |
| 81 | + selector: 'textarea', // Adjust this value to match your HTML |
43 | 82 | mobile: { |
44 | 83 | menubar: true |
45 | 84 | } |
46 | 85 | }); |
47 | 86 | ---- |
48 | 87 |
|
49 | | -[[mobile-defaults-for-selected-options]] |
50 | | -=== Mobile defaults for selected options |
51 | | - |
52 | | -These mobile-specific default values have been set to disable unsupported options for mobile devices or to provide the best experience without configuration from developers. |
| 88 | +== Mobile-Specific Defaults |
53 | 89 |
|
54 | | -The following options have mobile-specific default values: |
| 90 | +The following options are automatically set to provide a better experience on mobile devices: |
55 | 91 |
|
56 | | -* xref:menus-configuration-options.adoc#menubar[`+menubar+`] - defaults to `+false+` on mobile phones. |
57 | | -* xref:toolbar-configuration-options.adoc#toolbar_mode[`+toolbar_mode+`] - defaults to `+scrolling+` on mobile devices. The toolbar will side-scroll by default. |
58 | | -* xref:toolbar-configuration-options.adoc#toolbar_sticky[`+toolbar_sticky+`] - Sticky Toolbar is not supported on mobile devices and defaults to `+false+`. |
59 | | -* xref:table.adoc#table_grid[`+table_grid+`] - Table grid is not supported on mobile devices and defaults to `+false+`. When creating tables on mobile, a dialog is shown instead of the table grid. |
60 | | -* xref:editor-size-options.adoc#resize[`+resize+`] - Resizing is not supported on mobile devices and defaults to `+false+`. |
61 | | -* xref:content-behavior-options.adoc#object_resizing[`+object_resizing+`] - Object resizing is not supported on mobile devices and defaults to `+false+`. |
| 92 | +* xref:menus-configuration-options.adoc#menubar[`+menubar+`] — Defaults to `+false+` on mobile phones. |
| 93 | +* xref:toolbar-configuration-options.adoc#toolbar_mode[`+toolbar_mode+`] — Defaults to `+scrolling+`; enables side-scrolling toolbars. |
| 94 | +* xref:toolbar-configuration-options.adoc#toolbar_sticky[`+toolbar_sticky+`] — Defaults to `+false+`; sticky toolbars are not supported. |
| 95 | +* xref:table.adoc#table_grid[`+table_grid+`] — Defaults to `+false+`; a dialog replaces the table grid. |
| 96 | +* xref:editor-size-options.adoc#resize[`+resize+`] — Defaults to `+false+`; in-editor resizing is disabled. |
| 97 | +* xref:content-behavior-options.adoc#object_resizing[`+object_resizing+`] — Defaults to `+false+`; object resizing is not supported. |
62 | 98 |
|
63 | | -=== Unsupported options for mobile |
| 99 | +== Unsupported Configuration Options |
64 | 100 |
|
65 | | -The following options are not supported on mobile devices: |
| 101 | +The following configuration options are not applicable or functional on mobile devices: |
66 | 102 |
|
67 | | -* xref:use-tinymce-inline.adoc[Inline editing mode]. |
68 | | -* xref:use-tinymce-distraction-free.adoc[Distraction-free editing mode]. |
69 | | -* xref:inline-editor-options.adoc#inline[`+inline+`]. |
70 | | -* xref:toolbar-configuration-options.adoc#toolbar_sticky[`+toolbar_sticky+`]. |
71 | | -* xref:table.adoc#table_grid[`+table_grid+`]. |
72 | | -* xref:editor-size-options.adoc#resize[`+resize+`]. |
73 | | -* xref:content-behavior-options.adoc#object_resizing[`+object_resizing+`]. |
| 103 | +* xref:toolbar-configuration-options.adoc#toolbar_sticky[`+toolbar_sticky+`] |
| 104 | +* xref:table.adoc#table_grid[`+table_grid+`] |
| 105 | +* xref:editor-size-options.adoc#resize[`+resize+`] |
| 106 | +* xref:content-behavior-options.adoc#object_resizing[`+object_resizing+`] |
74 | 107 |
|
75 | | -include::partial$configuration/mobile.adoc[] |
| 108 | +include::partial$configuration/mobile.adoc[] |
0 commit comments