add drop file to more forms
This commit is contained in:
parent
6d115dd74e
commit
7ceb00799a
|
@ -1,2 +1,7 @@
|
||||||
<label for="content">Content</label>
|
<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>
|
|
@ -2,4 +2,9 @@
|
||||||
<input type="text" name="title" value="{{.Title}}" />
|
<input type="text" name="title" value="{{.Title}}" />
|
||||||
|
|
||||||
<label for="content">Content</label>
|
<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>
|
|
@ -12,4 +12,9 @@
|
||||||
{{$i}}{{ end }}</textarea>
|
{{$i}}{{ end }}</textarea>
|
||||||
|
|
||||||
<label for="content">Content</label>
|
<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>
|
|
@ -5,4 +5,9 @@
|
||||||
<input type="text" name="url" value="{{.Url}}" placeholder="https://..." />
|
<input type="text" name="url" value="{{.Url}}" placeholder="https://..." />
|
||||||
|
|
||||||
<label for="content">Content</label>
|
<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>
|
Loading…
Reference in New Issue