Ok. I found some Modern code.
The important thing is your code matches your plugins/skins/Theme etc.
i.e
server [foo.html | foo.hyperesources | tinymce | ]
So long as you have the correct code for the correct themes you can simply place the/tinymce folder in the same directory as the exported projects.
Then make sure that the main tinymce js link is pointing to the file in that folder.
in my example. this would be:
<script type="text/javascript" src="../tinymce/tinymce.min.js"></script>
The full code I used in the widget is,
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="../tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinyMCE.init({
selector: 'textarea',
height: 500,
theme: 'modern',
plugins: [
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools'
],
toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
toolbar2: 'print preview media | forecolor backcolor emoticons',
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
]
/*,
content_css: [
'https://fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
'https://www.tinymce.com/css/codepen.min.css'
] */
});
</script>
</head>
<body>
<form method="post" action="somepage" onsubmit="return false">
<textarea id="mytextarea" name="content" style="width:100%"></textarea>
<input style="visibility: hidden; position: absolute;" id="submit" type="submit" value="Submit" >
</form>
</body>
</html>
You will not be able to preview in Hype and the submit as I have it will only work from a server ( cross domain issue otherwise)
Most things seem to work. But you should be able to take it from here and add, correct what ever…
tinyMCE_v2.zip (523.3 KB)