{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %} BrainDump | Edit Note {% endblock %}

{% block page_content %}
<div class="page-header">
  <h1> Edit Note </h1>
</div>

<div class="container">
  <form class="form form-horizontal" action="" method="post" role="form">
    {{ form.csrf_token }}
    {{ wtf.form_field(form.title) }}
    {{ wtf.form_field(form.body) }}
    <div id="editor" class="form-group"></div>
    {{ wtf.form_field(form.submit, class="btn btn-default form-group") }}
  </form>
</div>

{% endblock %}

{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='js/libs/marked.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/releases.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/ace/ace.js') }}"></script>
<script src="{{ url_for('static', filename='js/braindump.js') }}"></script>
{% endblock %}

{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %} BrainDump | Edit Note {% endblock %}

{% block page_content %}
<div class="page-header">
  <h1> Edit Note </h1>
</div>

<div class="container">
  <form class="form form-horizontal" action="" method="post" role="form">
    {{ form.csrf_token }}
    {{ wtf.form_field(form.title) }}
    {{ wtf.form_field(form.body) }}
    {{ wtf.form_field(form.body_html) }}
    <div id="editor" class="form-group"></div>
    {{ wtf.form_field(form.submit, class="btn btn-default form-group") }}
  </form>
</div>

{% endblock %}

{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='js/libs/marked.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/releases.js') }}"></script>
<script src="{{ url_for('static', filename='js/libs/ace/ace.js') }}"></script>
<script src="{{ url_for('static', filename='js/braindump.js') }}"></script>
{% endblock %}

Add Hidden HTML Field to Note Editor
[BUGFIX] Add Hidden HTML Field to Note Editor

Fixes https://github.com/levlaz/braindump/issues/9
