You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
723 B

  1. var editor = new MediumEditor('.editable', {
  2. buttons: ['bold', 'italic', 'header1', 'header2', 'quote', 'unorderedlist', 'pre'],
  3. paste: {
  4. // This example includes the default options for paste, if nothing is passed this is what it used
  5. forcePlainText: false,
  6. cleanPastedHTML: true,
  7. cleanReplacements: [],
  8. cleanAttrs: ['class', 'style', 'dir'],
  9. cleanTags: ['meta']
  10. }
  11. });
  12. $(function () {
  13. $('.editable').mediumInsert({
  14. editor: editor,
  15. beginning: true,
  16. addons: {
  17. images: {
  18. deleteScript: '/editor/delete-file',
  19. fileUploadOptions: {
  20. url: '/editor/upload'
  21. }
  22. },
  23. embeds: {
  24. oembedProxy: '/editor/oembed'
  25. }
  26. }
  27. });
  28. });