form-editor.init.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /******/ (function() { // webpackBootstrap
  2. var __webpack_exports__ = {};
  3. /*!************************************************!*\
  4. !*** ./resources/js/pages/form-editor.init.js ***!
  5. \************************************************/
  6. /*
  7. Template Name: Skote - Admin & Dashboard Template
  8. Author: Themesbrand
  9. Website: https://themesbrand.com/
  10. Contact: themesbrand@gmail.com
  11. File: Form editor Js File
  12. */
  13. $(document).ready(function () {
  14. if ($("#elm1").length > 0) {
  15. tinymce.init({
  16. selector: "textarea#elm1",
  17. height: 300,
  18. plugins: ["advlist autolink link image 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"],
  19. toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
  20. style_formats: [{
  21. title: 'Bold text',
  22. inline: 'b'
  23. }, {
  24. title: 'Red text',
  25. inline: 'span',
  26. styles: {
  27. color: '#ff0000'
  28. }
  29. }, {
  30. title: 'Red header',
  31. block: 'h1',
  32. styles: {
  33. color: '#ff0000'
  34. }
  35. }, {
  36. title: 'Example 1',
  37. inline: 'span',
  38. classes: 'example1'
  39. }, {
  40. title: 'Example 2',
  41. inline: 'span',
  42. classes: 'example2'
  43. }, {
  44. title: 'Table styles'
  45. }, {
  46. title: 'Table row 1',
  47. selector: 'tr',
  48. classes: 'tablerow1'
  49. }]
  50. });
  51. }
  52. });
  53. /******/ })()
  54. ;