export default [
  {
    command: 'bold',
    icon: 'fa fa-bold'
  },
  {
    command: 'italic',
    icon: 'fa fa-italic'
  },
  {
    command: 'createLink',
    icon: 'fa fa-link',
    handler() {
      const url = window.prompt('Please insert a link', 'http://');
      document.execCommand('createLink', true, url);
    }
  },
  {
    command: 'unLink',
    icon: 'fa fa-unlink'
  },
  {
    command: 'cut',
    icon: 'fa fa-cut'
  },
  {
    command: 'delete',
    icon: 'fa fa-trash-o',
    handler(selection) {
      document.execCommand(
        'insertHTML',
        true,
        `<p>${selection.toString()}</p>`
      );
    }
  },
  {
    command: 'fontName',
    icon: 'fa fa-font',
    value: 'sans',
    handler(selection) {
      const ff = window.prompt('Please insert font family', 'sans');
      document.execCommand(
        'insertHTML',
        true,
        `<span style="font-family: ${ff}">${selection}</span>`
      );
    }
  },
  {
    command: 'foreColor',
    icon: 'fa fa-paint-brush',
    value: 'yellow',
    handler(selection, Leylim) {
      const color = `window.prompt('Please insert color', '#000')`;
      const modal = Leylim.$getModal({});
      modal.open();

      document.execCommand(
        'insertHTML',
        true,
        `<span style="color: ${color}">${selection}</span>`
      );
    }
  },
  {
    command: 'formatBlock',
    icon: 'fa fa-header fa-1',
    innerText: 1,
    handler(selection) {
      document.execCommand('insertHTML', true, `<h1>${selection}</h1>`);
    }
  },
  {
    command: 'formatBlock',
    icon: 'fa fa-header fa-1',
    innerText: 2,
    handler(selection) {
      document.execCommand('insertHTML', true, `<h2>${selection}</h2>`);
    }
  },
  {
    command: 'formatBlock',
    icon: 'fa fa-header fa-1',
    innerText: 3,
    handler(selection) {
      document.execCommand('insertHTML', true, `<h3>${selection}</h3>`);
    }
  },
  {
    command: 'formatBlock',
    icon: 'fa fa-header fa-1',
    innerText: 4,
    handler(selection) {
      document.execCommand('insertHTML', true, `<h4>${selection}</h4>`);
    }
  },
  {
    command: 'formatBlock',
    icon: 'fa fa-header fa-1',
    innerText: 5,
    handler(selection) {
      document.execCommand('insertHTML', true, `<h5>${selection}</h5>`);
    }
  },
  {
    command: 'formatBlock',
    icon: 'fa fa-header fa-1',
    innerText: 6,
    handler(selection) {
      document.execCommand('insertHTML', true, `<h6>${selection}</h6>`);
    }
  }
];

@@ -643,321 +643,8 @@
   %7B%0A
-    command: 'fontName',%0A    icon: 'fa fa-font',%0A    value: 'sans',%0A    handler(selection) %7B%0A      const ff = window.prompt('Please insert font family', 'sans');%0A      document.execCommand(%0A        'insertHTML',%0A        true,%0A        %60%3Cspan style=%22font-family: $%7Bff%7D%22%3E$%7Bselection%7D%3C/span%3E%60%0A      );%0A    %7D%0A  %7D,%0A  %7B%0A
     

remove font button