Further work on note ownership and sharing

This commit is contained in:
Maximilian Friedersdorff 2025-08-23 22:18:36 +01:00
parent bb775ec55f
commit 4fda818e6e
4 changed files with 125 additions and 34 deletions

View file

@ -24,10 +24,30 @@
href="/static/css/tiny-mde.min.css"
/>
<script type="text/javascript">
var tinyMDE = new TinyMDE.Editor({ textarea: "noteBodyInput" });
var commandBar = new TinyMDE.CommandBar({
element: "toolbar",
editor: tinyMDE,
commands: [
'bold', 'italic', 'strikethrough',
'|',
'code',
'|',
'h1', 'h2',
'|',
'ul', 'ol', {name: "checklist", title: "Check List", action: makeChecklist},
'|',
'blockquote', 'hr',
'|',
'insertLink', 'insertImage'
],
});
function makeChecklist(editor) {
editor.wrapSelection("* [ ] ", "")
};
</script>
{{end}}