text: export default (editor, config) => {
    const bm = editor.BlockManager;
    const toAdd = name => config.blocks.indexOf(name) >= 0;
  
    toAdd('link-block') && bm.add('link-block', {
      category: 'Basic',
      label: 'Link Block',
      attributes: { class: 'fa fa-link' },
      content: {
        type:'link',
        editable: false,
        droppable: true,
        style:{
          display: 'inline-block',
          padding: '5px',
          'min-height': '50px',
          'min-width': '50px'
        }
      },
    });
  
    toAdd('quote') && bm.add('quote', {
      label: 'Quote',
      category: 'Basic',
      attributes: { class: 'fa fa-quote-right' },
      content: `<blockquote class="quote">
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ipsum dolor sit
        </blockquote>`
    });
  
    toAdd('text-basic') && bm.add('text-basic', {
      category: 'Basic',
      label: 'Text section',
      attributes: { class: 'gjs-fonts gjs-f-h1p' },
      content: `<section class="bdg-sect">
        <h1 class="heading">Insert title here</h1>
        <p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</p>
        </section>`
    }); 
    
    toAdd("file-upload") &&
      bm.add("file-upload", {
        label: "File Upload",
        category: "Forms",
        attributes: { class: "fa fa-upload" },
        content: `<form action="/action_page.php">
                    <label for="myfile">Select a file:</label>
                    <input type="file" id="myfile" name="myfile"><br><br>
                   <input type="submit">
                  </form> `
      });
  }
  