mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix jumping focus with Orion editor
This commit is contained in:
parent
41f35881e6
commit
6205190c78
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-func"><i class="icon-wrench"></i> Function</label>
|
<label for="node-input-func"><i class="icon-wrench"></i> Function</label>
|
||||||
<input type="hidden" id="node-input-func">
|
<input type="hidden" id="node-input-func" autofocus="autofocus">
|
||||||
<div style="height: 250px;" class="node-text-editor" id="node-input-func-editor" ></div>
|
<div style="height: 250px;" class="node-text-editor" id="node-input-func-editor" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@ -85,6 +85,7 @@
|
|||||||
editor:that.editor, // the field name the main text body goes to
|
editor:that.editor, // the field name the main text body goes to
|
||||||
fields:['name','outputs']
|
fields:['name','outputs']
|
||||||
});
|
});
|
||||||
|
$("#node-input-name").focus();
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-template"><i class="icon-wrench"></i> Template</label>
|
<label for="node-input-template"><i class="icon-wrench"></i> Template</label>
|
||||||
<input type="hidden" id="node-input-template">
|
<input type="hidden" id="node-input-template" autofocus="autofocus">
|
||||||
<div style="height: 250px;" class="node-text-editor" id="node-input-template-editor" ></div>
|
<div style="height: 250px;" class="node-text-editor" id="node-input-template-editor" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -79,7 +79,7 @@
|
|||||||
editor:that.editor, // the field name the main text body goes to
|
editor:that.editor, // the field name the main text body goes to
|
||||||
fields:['name']
|
fields:['name']
|
||||||
});
|
});
|
||||||
|
$("#node-input-name").focus();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
oneditsave: function() {
|
oneditsave: function() {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-info" style="width: 100% !important;"><i class="icon-file"></i> More</label>
|
<label for="node-input-info" style="width: 100% !important;"><i class="icon-file"></i> More</label>
|
||||||
<input type="hidden" id="node-input-info">
|
<input type="hidden" id="node-input-info" autofocus="autofocus">
|
||||||
<div style="height: 250px;" class="node-text-editor" id="node-input-info-editor" ></div>
|
<div style="height: 250px;" class="node-text-editor" id="node-input-info-editor" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-tips">Tip: this isn't meant for War and Peace - but useful notes can be kept here.</div>
|
<div class="form-tips">Tip: this isn't meant for War and Peace - but useful notes can be kept here.</div>
|
||||||
@ -75,6 +75,7 @@
|
|||||||
showFoldingRuler:false,
|
showFoldingRuler:false,
|
||||||
contents: $("#node-input-info").val()
|
contents: $("#node-input-info").val()
|
||||||
});
|
});
|
||||||
|
$("#node-input-name").focus();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
oneditsave: function() {
|
oneditsave: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user