mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Revert "Fix test for needing to update text editor DOM"
This reverts commit a65ec87c53
.
This commit is contained in:
parent
e67485ec54
commit
a6f6db40d9
@ -106,7 +106,7 @@ Set the text of the engine if it doesn't currently have focus
|
|||||||
*/
|
*/
|
||||||
FramedEngine.prototype.setText = function(text,type) {
|
FramedEngine.prototype.setText = function(text,type) {
|
||||||
if(!this.domNode.isTiddlyWikiFakeDom) {
|
if(!this.domNode.isTiddlyWikiFakeDom) {
|
||||||
if(this.domNode.value !== text) {
|
if(this.domNode.ownerDocument.activeElement !== this.domNode) {
|
||||||
this.domNode.value = text;
|
this.domNode.value = text;
|
||||||
}
|
}
|
||||||
// Fix the height if needed
|
// Fix the height if needed
|
||||||
|
@ -67,7 +67,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.value !== text) {
|
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