Merge pull request #2364 from kazuhitoyokoi/master-addtooltip

Add tooltip to the expand button in markdown editor
This commit is contained in:
Nick O'Leary
2019-11-01 23:36:31 +00:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@@ -2484,7 +2484,7 @@ RED.editor = (function() {
editor.toolbar = customEditTypes['_markdown'].buildToolbar(toolbarRow,editor);
if (options.expandable !== false) {
var expandButton = $('<button type="button" class="red-ui-button" style="float: right;"><i class="fa fa-expand"></i></button>').appendTo(editor.toolbar);
RED.popover.tooltip(expandButton, RED._("markdownEditor.expand"));
expandButton.on("click", function(e) {
e.preventDefault();
var value = editor.getValue();