kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Text editor: fix crash when assigning new value to file input controls
Fixes #5911sort-optimisations
rodzic
0413c3a38e
commit
2720072b23
|
@ -135,7 +135,11 @@ FramedEngine.prototype.setText = function(text,type) {
|
|||
Update the DomNode with the new text
|
||||
*/
|
||||
FramedEngine.prototype.updateDomNodeText = function(text) {
|
||||
this.domNode.value = text;
|
||||
try {
|
||||
this.domNode.value = text;
|
||||
} catch(e) {
|
||||
// Ignore
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -85,7 +85,11 @@ SimpleEngine.prototype.setText = function(text,type) {
|
|||
Update the DomNode with the new text
|
||||
*/
|
||||
SimpleEngine.prototype.updateDomNodeText = function(text) {
|
||||
this.domNode.value = text;
|
||||
try {
|
||||
this.domNode.value = text;
|
||||
} catch(e) {
|
||||
// Ignore
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Ładowanie…
Reference in New Issue