mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Refresh simple editor when empty text, e.g. hitting ENTER (#2702)
fixes #2592, missing bit of deleting the field for adding a new tag in edit-mode also fix for: https://groups.google.com/forum/?fromgroups=#!topic/tiddlywiki/L6Z7gSvBWjw
This commit is contained in:
parent
2f21cbc971
commit
d4db283d61
|
@ -64,7 +64,7 @@ Set the text of the engine if it doesn't currently have focus
|
||||||
*/
|
*/
|
||||||
SimpleEngine.prototype.setText = function(text,type) {
|
SimpleEngine.prototype.setText = function(text,type) {
|
||||||
if(!this.domNode.isTiddlyWikiFakeDom) {
|
if(!this.domNode.isTiddlyWikiFakeDom) {
|
||||||
if(this.domNode.ownerDocument.activeElement !== this.domNode) {
|
if(this.domNode.ownerDocument.activeElement !== this.domNode || text === "") {
|
||||||
this.domNode.value = text;
|
this.domNode.value = text;
|
||||||
}
|
}
|
||||||
// Fix the height if needed
|
// Fix the height if needed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user