Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't get mobile theme working in TypeScript #4826
Do you want to request a feature or report a bug?
What is the current behavior?
import tinymce from 'tinymce/tinymce'; import 'tinymce/themes/silver/theme'; import 'tinymce/themes/mobile/theme'; import 'tinymce/plugins/link/plugin'; .... target: document.getElementById('textarea') menubar: false, skin: false, plugins: 'link', toolbar: 'bold italic | link',
Does it look fine for mobile? Or should I implement something more to get this work?
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.
What is the expected behavior?
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
hey @blackcathikari just few minutes ago I got it working.
I am still confused between skin and theme and somewhere I've read that it's better to disable skin if you import it in TypeScript like I did. Does it make any sense? Or should I get it done differently?
Theme is all the UI code. It's both the framework that defines all the components, and the code that uses those components to make the editor UI.
Skin is purely CSS, but each skin is also specific to a theme. E.g. the Oxide skin only works for TinyMCE 5's Silver theme, while TinyMCE 4's Modern theme has its own skin.
Does it work if you don't import a skin and don't specify
We have similar code in our test framework for importing TinyMCE - I'll check what we do.