How to start TinyMCE 4 in full screen?

Is there a way to run TinyMCE 4 in full screen? I just upgraded from TinyMCE 3.x, but the method that was made in 3.x does not work in 4.x:

<head> <script type="text/javascript" src="TinyMCE/tinymce.min.js"></script> <script type="text/javascript"> tinyMCE.init({ oninit : function() { tinyMCE.get('editor').execCommand('mceFullScreen'); } }); </script> </head> <body> <textarea id="editor"></textarea> </body> 

Any suggestions?

+7
javascript tinymce wysiwyg html-editor tinymce-4
source share
1 answer

Found how to do this:

 <head> <script type="text/javascript" src="TinyMCE/tinymce.min.js"></script> <script type="text/javascript"> tinyMCE.init({ plugins: [ 'fullscreen' ], setup: function(editor) { editor.on('init', function(e) { editor.execCommand('mceFullScreen'); }); } }); </script> </head> <body> <textarea id="editor"></textarea> </body> 
+16
source share

All Articles