mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 17:23:11 -08: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
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ Set the text of the engine if it doesn't currently have focus
|
|||
*/
|
||||
SimpleEngine.prototype.setText = function(text,type) {
|
||||
if(!this.domNode.isTiddlyWikiFakeDom) {
|
||||
if(this.domNode.ownerDocument.activeElement !== this.domNode) {
|
||||
if(this.domNode.ownerDocument.activeElement !== this.domNode || text === "") {
|
||||
this.domNode.value = text;
|
||||
}
|
||||
// Fix the height if needed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue