mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 23:25:32 +08:00
FIX: {{ace-editor}}
was buggy in Ember CLI release (#12952)
This commit is contained in:
parent
c8f34db648
commit
c792c2b5fe
@ -19,6 +19,10 @@ export default Component.extend({
|
||||
}
|
||||
},
|
||||
|
||||
didRender() {
|
||||
this._skipContentChangeEvent = false;
|
||||
},
|
||||
|
||||
@observes("content")
|
||||
contentChanged() {
|
||||
const content = this.content || "";
|
||||
@ -103,7 +107,6 @@ export default Component.extend({
|
||||
editor.on("change", () => {
|
||||
this._skipContentChangeEvent = true;
|
||||
this.set("content", editor.getSession().getValue());
|
||||
this._skipContentChangeEvent = false;
|
||||
});
|
||||
if (this.attrs.save) {
|
||||
editor.commands.addCommand({
|
||||
|
Loading…
x
Reference in New Issue
Block a user