editors.js 939 B

1234567891011121314151617181920212223
  1. $(function () {
  2. //CKEditor
  3. CKEDITOR.replace('ckeditor');
  4. CKEDITOR.config.height = 300;
  5. //TinyMCE
  6. tinymce.init({
  7. selector: "textarea#tinymce",
  8. theme: "modern",
  9. height: 300,
  10. plugins: [
  11. 'advlist autolink lists link image charmap print preview hr anchor pagebreak',
  12. 'searchreplace wordcount visualblocks visualchars code fullscreen',
  13. 'insertdatetime media nonbreaking save table contextmenu directionality',
  14. 'emoticons template paste textcolor colorpicker textpattern imagetools'
  15. ],
  16. toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  17. toolbar2: 'print preview media | forecolor backcolor emoticons',
  18. image_advtab: true
  19. });
  20. tinymce.suffix = ".min";
  21. tinyMCE.baseURL = '../../plugins/tinymce';
  22. });