mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #2364 from kazuhitoyokoi/master-addtooltip
Add tooltip to the expand button in markdown editor
This commit is contained in:
		@@ -796,6 +796,7 @@
 | 
			
		||||
    },
 | 
			
		||||
    "markdownEditor": {
 | 
			
		||||
        "title": "Markdown editor",
 | 
			
		||||
        "expand": "Expand",
 | 
			
		||||
        "format": "Formatted with markdown",
 | 
			
		||||
        "heading1": "Heading 1",
 | 
			
		||||
        "heading2": "Heading 2",
 | 
			
		||||
 
 | 
			
		||||
@@ -795,6 +795,7 @@
 | 
			
		||||
    },
 | 
			
		||||
    "markdownEditor": {
 | 
			
		||||
        "title": "マークダウンエディタ",
 | 
			
		||||
        "expand": "拡大",
 | 
			
		||||
        "format": "マークダウン形式で記述",
 | 
			
		||||
        "heading1": "見出しレベル1",
 | 
			
		||||
        "heading2": "見出しレベル2",
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user