mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Use markdown editor if editText called with md mode
This commit is contained in:
parent
086f0f8450
commit
5e63471983
@ -2788,7 +2788,13 @@ RED.editor = (function() {
|
|||||||
editExpression: function(options) { showTypeEditor("_expression", options) },
|
editExpression: function(options) { showTypeEditor("_expression", options) },
|
||||||
editJSON: function(options) { showTypeEditor("_json", options) },
|
editJSON: function(options) { showTypeEditor("_json", options) },
|
||||||
editMarkdown: function(options) { showTypeEditor("_markdown", options) },
|
editMarkdown: function(options) { showTypeEditor("_markdown", options) },
|
||||||
editText: function(options) { showTypeEditor("_text", options) },
|
editText: function(options) {
|
||||||
|
if (options.mode == "markdown") {
|
||||||
|
showTypeEditor("_markdown", options)
|
||||||
|
} else {
|
||||||
|
showTypeEditor("_text", options)
|
||||||
|
}
|
||||||
|
},
|
||||||
editBuffer: function(options) { showTypeEditor("_buffer", options) },
|
editBuffer: function(options) { showTypeEditor("_buffer", options) },
|
||||||
buildEditForm: buildEditForm,
|
buildEditForm: buildEditForm,
|
||||||
validateNode: validateNode,
|
validateNode: validateNode,
|
||||||
|
Loading…
Reference in New Issue
Block a user