add drop file to more forms

This commit is contained in:
Niko Abeler 2024-02-23 10:15:06 +01:00
parent 6d115dd74e
commit 7ceb00799a
4 changed files with 24 additions and 4 deletions

View File

@ -1,2 +1,7 @@
<label for="content">Content</label>
<textarea name="content" rows="8">{{.Content}}</textarea>
<textarea id="contentField" name="content" rows="8">{{.Content}}</textarea>
<script src="/static/editor.js"></script>
<script>
addFileDrop("contentField")
</script>

View File

@ -2,4 +2,9 @@
<input type="text" name="title" value="{{.Title}}" />
<label for="content">Content</label>
<textarea name="content" rows="16">{{.Content}}</textarea>
<textarea id="contentField" name="content" rows="16">{{.Content}}</textarea>
<script src="/static/editor.js"></script>
<script>
addFileDrop("contentField")
</script>

View File

@ -12,4 +12,9 @@
{{$i}}{{ end }}</textarea>
<label for="content">Content</label>
<textarea name="content" rows="16">{{.Content}}</textarea>
<textarea id="contentField" name="content" rows="16">{{.Content}}</textarea>
<script src="/static/editor.js"></script>
<script>
addFileDrop("contentField")
</script>

View File

@ -5,4 +5,9 @@
<input type="text" name="url" value="{{.Url}}" placeholder="https://..." />
<label for="content">Content</label>
<textarea name="content" rows="16">{{.Content}}</textarea></textarea>
<textarea id="contentField" name="content" rows="16">{{.Content}}</textarea></textarea>
<script src="/static/editor.js"></script>
<script>
addFileDrop("contentField")
</script>