Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML
This commit is contained in:
parent
0e3ada4fcf
commit
96e4e90a61
@ -92,7 +92,7 @@ export class EditingArea extends HTMLDivElement {
|
|||||||
|
|
||||||
initialize(color: string, content: string): void {
|
initialize(color: string, content: string): void {
|
||||||
this.setBaseColor(color);
|
this.setBaseColor(color);
|
||||||
this.editable.fieldHTML = content;
|
this.fieldHTML = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
setBaseColor(color: string): void {
|
setBaseColor(color: string): void {
|
||||||
@ -155,7 +155,7 @@ export class EditingArea extends HTMLDivElement {
|
|||||||
this.editable.hidden = false;
|
this.editable.hidden = false;
|
||||||
} else {
|
} else {
|
||||||
this.editable.hidden = true;
|
this.editable.hidden = true;
|
||||||
this.codable.setup(this.fieldHTML);
|
this.codable.setup(this.editable.fieldHTML);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hadFocus) {
|
if (hadFocus) {
|
||||||
|
Loading…
Reference in New Issue
Block a user