Usage Example

  1. <template>
  2. <vuestic-medium-editor @initialized="handleEditorInitialization" :editor-options="editorOptions">
  3. Initial Content
  4. </vuestic-medium-editor>
  5. </template>
  6.  
  7. <script>
  8. export default {
  9. name: 'medium-editor-wrapper',
  10.  
  11. data () {
  12. return {
  13. editor: {},
  14. editorOptions: {
  15. buttonLabels: 'fontawesome',
  16. autoLink: true,
  17. toolbar: {
  18. buttons: [
  19. 'bold',
  20. 'italic',
  21. 'underline',
  22. 'anchor',
  23. 'h1',
  24. 'h2',
  25. 'h3'
  26. ]
  27. }
  28. }
  29. }
  30. },
  31.  
  32. methods: {
  33. handleEditorInitialization (editor) {
  34. this.editor = editor
  35. }
  36. }
  37. }
  38. </script>

Props

  • editor-options - Object - medium editor initialization options
    Our Medium Editor integration throws an initialized event with editor object as it's payload, so you can use all the Medium Editor features inside your wrapper component.

Find DEMOs here!