mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add optional header to markdown editor
This commit is contained in:
@@ -2260,6 +2260,10 @@ RED.editor = (function() {
|
||||
value: value,
|
||||
mode:"ace/mode/markdown"
|
||||
});
|
||||
if (options.header) {
|
||||
options.header.appendTo(tray.find('#node-input-markdown-title'));
|
||||
}
|
||||
|
||||
dialogForm.i18n();
|
||||
},
|
||||
close: function() {
|
||||
|
@@ -119,6 +119,7 @@ RED.projects.settings = (function() {
|
||||
function editDescription(activeProject, container) {
|
||||
RED.editor.editMarkdown({
|
||||
title: RED._('sidebar.project.editDescription'),
|
||||
header: $('<span><i class="fa fa-book"></i> README.md</span>'),
|
||||
value: activeProject.description,
|
||||
complete: function(v) {
|
||||
container.empty();
|
||||
|
Reference in New Issue
Block a user