Mobile version of TinyMCE should respect the noneditable plugin when using Silver theme
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior? Noneditable elements are freely editable when using a mobile version of TinyMCE that uses Silver theme instead of full screen editor.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tinymce.com or similar. Setup TinyMCE with the noneditable plugin and Silver theme for mobile instead of full screen editor, and specify that elements of a certain class should be noneditable.
tinymce.init({
selector: "textarea",
plugins: "noneditable",
noneditable_noneditable_class: "mceNonEditable",
mobile: {
theme: 'silver',
},
});
Using desktop browser, add some elements through source code that contain the specified noneditable class. Test in desktop browser and observe that noneditable elements are not editable. Then, switch to a mobile device and observe how the noneditable elements ARE freely and fully editable (bug).
Now, remove the silver theme from the mobile setup, and test again using the fullscreen editor in your mobile device. Observe how the noneditable areas ARE NOT editable (correct).
What is the expected behavior? Expected behaviour is that the mobile version of TinyMCE respect the noneditable setup, even when using the Silver theme instead of fullscreen editor.
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? TinyMCE v5.0.1 (2019-02-21) Chrome 72.0.3626.119 (Official Build) (64-bit) Opera 58.0.3135.68 Opera for Android v49.2.2361.134358 Chrome for Android v71.0.3578.99 Android 9
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
We’ve realised that the way we turned mobile on by default in v5 has changed the plugin defaults as well. Even though using desktop themes on mobile isn’t something we test, we’re going to log a task to link the plugin whitelist to the theme instead of the platform which should allow v4-like behaviour with using desktop themes on mobile if desired.
I checked with the team and the silver theme currently isn’t supported in mobile mode unfortunately, so it is behaving correctly as those three plugins are the only supported plugins for mobile mode.
In which case, I’ll turn this into a feature request to be able to support silver and additional plugins for mobile.