{% extends "base.html" %}
{% block content %}
    <link rel="stylesheet" href="{{ url_for('static', filename='node_modules/medium-editor/dist/css/medium-editor.css') }}"> 
    <div class="editable"><p>Hi there!</p></div>
    <script src="{{ url_for('static', filename='node_modules/medium-editor/dist/js/medium-editor.min.js') }}"></script>
    <script>var editor = new MediumEditor('.editable');</script>
{% endblock %}

{% extends "base.html" %}
{% block content %}
    <link rel="stylesheet" href="{{ url_for('static', filename='node_modules/medium-editor/dist/css/medium-editor.css') }}"> 
    <link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static', filename='node_modules/medium-editor/dist/css/themes/flat.css') }}">
    <div class="editable"><p>My father’s family name being <a href="https://en.wikipedia.org/wiki/Pip_(Great_Expectations)">Pirrip</a>, and my Christian name Philip, my infant tongue could make of both names nothing longer or more explicit than Pip. So, I called myself Pip, and came to be called Pip.</p>
            <p>I give Pirrip as my father’s family name, on the authority of his tombstone and my sister,—Mrs. Joe Gargery, who married the blacksmith. As I never saw my father or my mother, and never saw any likeness of either of them (for their days were long before the days of photographs), my first fancies regarding what they were like were unreasonably derived from their tombstones...</p>
    <script src="{{ url_for('static', filename='node_modules/medium-editor/dist/js/medium-editor.min.js') }}"></script>
    <!-- https://github.com/kylesezhi/chequeo-tareas/blob/master/menus/chequeo-tareas.json -->
    <!-- https://github.com/yabwe/medium-editor/blob/master/dist/js/medium-editor.js#L3282 -->
    <script>var editor = new MediumEditor('.editable', {
      toolbar: {
        buttons: [{
          name: 'bold',
          contentDefault: 'bold'
        },
        {
            name: 'h1',
            action: 'append-h2',
            aria: 'header type 1',
            tagNames: ['h2'],
            contentDefault: '<b>CHECK</b>',
            classList: ['custom-class-h1'],
            attrs: {
                'data-custom-attr': 'attr-value-h1'
            }
        },        {
          name: 'underline',
          contentDefault: '<u>underline</u>'
        },
        {
          name: 'anchor',
          contentDefault: 'link'
        }
      ]
    }
    });
    </script>
{% endblock %}

Add a custom named button
Add a custom named button
