diff options
author | Sheogorath | 2019-03-25 17:41:51 +0100 |
---|---|---|
committer | Sheogorath | 2019-03-25 22:33:27 +0100 |
commit | 1544b45af5435fde1190634dc44b65ca6ab55238 (patch) | |
tree | e96df58086259e189cac6848a410b4611e9206a0 /public/js/lib/editor/toolbar.html | |
parent | 50c80c99a4246c60026517b8632a1bbb05e1fe5c (diff) |
Move upload button into toolbar
Currently we have the odd situation to have two toolbars. One inside the
header and one in the editor.
Since we only show the image upload button when the editor is visible we
should move the upload button into the editor toolbar.
This patch does this by adding the image upload button besides the image
tag button.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | public/js/lib/editor/toolbar.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/lib/editor/toolbar.html b/public/js/lib/editor/toolbar.html index a2ac476f..9ea1aacc 100644 --- a/public/js/lib/editor/toolbar.html +++ b/public/js/lib/editor/toolbar.html @@ -34,6 +34,9 @@ <a id="makeImage" class="btn btn-sm btn-dark text-uppercase" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="Image"> <i class="fa fa-image fa-fw"></i> </a> + <span id="uploadImage" class="btn btn-sm btn-dark btn-file ui-upload-image" title="Upload Image"> + <i class="fa fa-upload fa-fw"></i><input type="file" accept="image/*" name="upload" multiple> + </span> <a id="makeTable" class="btn btn-sm btn-dark text-uppercase" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="Table"> <i class="fa fa-table fa-fw"></i> </a> |