|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<div class="page" data-name="editnote">
|
|
|
|
|
|
|
|
<div class="navbar">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="left">
|
|
|
|
<a href="#" class="link icon-only" onclick="exiteditor()">
|
|
|
|
<i class="icon icon-back"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="title">
|
|
|
|
{{#if notetitle}}
|
|
|
|
{{notetitle}}
|
|
|
|
{{else}}
|
|
|
|
New note
|
|
|
|
{{/if}}</div>
|
|
|
|
|
|
|
|
<div class="right">
|
|
|
|
<a href="#" onclick="saveme()" class="link icon-only">
|
|
|
|
<i class="fas fa-save"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page-content ptr-content">
|
|
|
|
|
|
|
|
<textarea id="note_content" data-noteid="{{noteid}}">{{content}}</textarea>
|
|
|
|
<textarea id="orig_content" style="display: none;">{{content}}</textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="js/editnote.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var easymde = new EasyMDE({
|
|
|
|
element: $("#note_content")[0],
|
|
|
|
autoDownloadFontAwesome: false,
|
|
|
|
autofocus: false,
|
|
|
|
forceSync: true,
|
|
|
|
status: false,
|
|
|
|
spellChecker: false,
|
|
|
|
toolbar: [
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"heading",
|
|
|
|
"|",
|
|
|
|
"quote",
|
|
|
|
"unordered-list",
|
|
|
|
"ordered-list",
|
|
|
|
"horizontal-rule"
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".editor-toolbar").addClass("elevation-1");
|
|
|
|
|
|
|
|
$(".navbar").on("resize", function () {
|
|
|
|
$(".editor-toolbar").css("top", $(".navbar").css("height"));
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</div>
|