How to use the easymde.togglePreview function in easymde

To help you get started, we’ve selected a few easymde examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polonel / trudesk / src / client / components / EasyMDE / index.jsx View on Github external
name: 'Numbered List',
        action: Easymde.toggleOrderedList,
        className: 'material-icons mi-numlist no-ajaxy',
        title: 'Numbered List'
      },
      '|',
      {
        name: 'Create Link',
        action: Easymde.drawLink,
        className: 'material-icons mi-link no-ajaxy',
        title: 'Create Link'
      },
      '|',
      {
        name: 'Toggle Preview',
        action: Easymde.togglePreview,
        className: 'material-icons mi-preview no-disable no-mobile no-ajaxy',
        title: 'Toggle Preview'
      }
    ]
  }
github astralapp / astral / resources / assets / js / components / Dashboard / NotesEditor.vue View on Github external
{
          name: 'link',
          action: EasyMDE.drawLink,
          className: 'fas fa-link',
          title: 'Link'
        },
        {
          name: 'image',
          action: EasyMDE.drawImage,
          className: 'fas fa-image',
          title: 'Image'
        },
        '|',
        {
          name: 'preview',
          action: EasyMDE.togglePreview,
          className: 'fas fa-eye',
          title: 'Preview'
        },
        {
          name: 'fullscreen',
          action: EasyMDE.toggleFullScreen,
          className: 'fas fa-arrows-alt',
          title: 'Image'
        }
      ]
    })
    this.editor.codemirror.on('change', () => {
      this.currentNotes = this.editor.value()
    })
  },
  destroyed() {

easymde

A simple, beautiful, and embeddable JavaScript Markdown editor that easy to use. Features include autosaving and spell checking.

MIT
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis