thedigicraft / Atom.CMS

Atom.CMS
56 stars 50 forks source link

Problem with tinymce #213

Open bidjan opened 8 years ago

bidjan commented 8 years ago

Hi Creptor: Attached are three files tinymce.init(), page.php and queries.php. tinymce fails to work to load page body text in textarea. When I remove tinymce selector in textarea page body shows up but no WYSIWYG format.

Any suggestions

Thanks

BobGhodsi http://pastebin.com/abW8paTB

creptor commented 8 years ago

TinyMCE usually fails, if the version is not the latest, or if the configuration is not done correctly. Try my configuration and CDN url 😋

TinyMCE Core

<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>

Javascript:

tinymce.init({selector:".editor",height:250,plugins:["advlist autolink link image imagetools lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor"]});

The CDN must be called before using the javascript