-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image upload functionality to quill
* Move toolbar into template to make it customizable
- Loading branch information
1 parent
83ca7db
commit d94063b
Showing
3 changed files
with
89 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
corehq/messaging/scheduling/templates/scheduling/partials/rich_text_editor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div id="ql-toolbar"> | ||
<select class="ql-header"> | ||
<option value="normal">paragraph</option> | ||
<option value="1"></option> | ||
<option value="2"></option> | ||
<option value="3"></option> | ||
</select> | ||
<select class="ql-font"> | ||
<option value="Arial" style="font-family: 'Arial'">Arial</option> | ||
<option value="Times New Roman" style="font-family: 'Times New Roman'">Times New Roman</option> | ||
</select> | ||
<select class="ql-size"> | ||
<option value="small">Small</option> | ||
<option selected>Default</option> | ||
<option value="large">Big</option> | ||
<option value="huge">Huge</option> | ||
</select> | ||
<button class="ql-bold"></button> | ||
<button class="ql-italic"></button> | ||
<button class="ql-underline"></button> | ||
<button class="ql-strike"></button> | ||
<select class="ql-color"></select> | ||
<select class="ql-background"></select> | ||
<button class="ql-link"></button> | ||
<button id="insert-image" class="ql-image"></button> | ||
<button class="ql-list" value="ordered"></button> | ||
<button class="ql-list" value="bullet"></button> | ||
<button class="ql-list" value="check"></button> | ||
<button class="ql-indent" value="-1"></button> | ||
<button class="ql-indent" value="+1"></button> | ||
<button class="ql-align"></button> | ||
<button class="ql-clean"></button> | ||
</div> | ||
<div data-bind="richEditor: {{ editableText }}"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters