page-form.js 976 B

1234567891011121314151617181920212223242526
  1. (function() {
  2. $(function() {
  3. var editor;
  4. editor = new Simditor({
  5. textarea: $('#txt-content1'),
  6. placeholder: '这里输入文字...',
  7. pasteImage: true,
  8. toolbar: ['title', 'bold', 'italic', 'underline', 'strikethrough', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link', 'image', 'hr', '|', 'indent', 'outdent'],
  9. defaultImage: 'assets/images/image.png',
  10. upload: location.search === '?upload' ? {
  11. url: '/upload'
  12. } : false
  13. });
  14. return editor = new Simditor({
  15. textarea: $('#txt-content2'),
  16. placeholder: '这里输入文字...',
  17. pasteImage: true,
  18. toolbar: ['title', 'bold', 'italic', 'underline', 'strikethrough', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link', 'image', 'hr', '|', 'indent', 'outdent'],
  19. defaultImage: 'assets/images/image.png',
  20. upload: location.search === '?upload' ? {
  21. url: '/upload'
  22. } : false
  23. });
  24. });
  25. }).call(this);