How to use the easymde.toggleCodeBlock 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 astralapp / astral / resources / assets / js / components / Dashboard / NotesEditor.vue View on Github external
{
          name: 'italic',
          action: EasyMDE.toggleItalic,
          className: 'fas fa-italic',
          title: 'Italic'
        },
        {
          name: 'heading',
          action: EasyMDE.toggleHeadingSmaller,
          className: 'fas fa-heading',
          title: 'Heading'
        },
        '|',
        {
          name: 'code',
          action: EasyMDE.toggleCodeBlock,
          className: 'fas fa-code',
          title: 'Code'
        },
        {
          name: 'quote',
          action: EasyMDE.toggleBlockquote,
          className: 'fas fa-quote-left',
          title: 'Quote'
        },
        {
          name: 'unordered-list',
          action: EasyMDE.toggleUnorderedList,
          className: 'fas fa-list-ul',
          title: 'Unordered List'
        },
        {
github polonel / trudesk / src / client / components / EasyMDE / index.jsx View on Github external
{
        name: 'italic',
        action: Easymde.toggleItalic,
        className: 'material-icons mi-italic no-ajaxy',
        title: 'Italic'
      },
      {
        name: 'Title',
        action: Easymde.toggleHeadingSmaller,
        className: 'material-icons mi-title no-ajaxy',
        title: 'Title'
      },
      '|',
      {
        name: 'Code',
        action: Easymde.toggleCodeBlock,
        className: 'material-icons mi-code no-ajaxy',
        title: 'Code'
      },
      {
        name: 'Quote',
        action: Easymde.toggleBlockquote,
        className: 'material-icons mi-quote no-ajaxy',
        title: 'Quote'
      },
      {
        name: 'Generic List',
        action: Easymde.toggleUnorderedList,
        className: 'material-icons mi-list no-ajaxy',
        title: 'Generic List'
      },
      {

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

64 / 100
Full package analysis