mirror of
https://github.com/documize/community.git
synced 2025-07-28 09:39:42 +02:00
refactored base-editor-inline to support section and block editing
This commit is contained in:
parent
81fcf0f5df
commit
7e7f63e6f4
15 changed files with 157 additions and 149 deletions
|
@ -33,6 +33,14 @@ export default Ember.Component.extend({
|
|||
let page = this.get('page');
|
||||
return `discard-edits-dialog-${page.id}`;
|
||||
}),
|
||||
contentLinkerButtonId: Ember.computed('page', function () {
|
||||
let page = this.get('page');
|
||||
return `content-linker-button-${page.id}`;
|
||||
}),
|
||||
previewButtonId: Ember.computed('page', function () {
|
||||
let page = this.get('page');
|
||||
return `content-preview-button-${page.id}`;
|
||||
}),
|
||||
|
||||
didRender() {
|
||||
let self = this;
|
||||
|
@ -108,6 +116,14 @@ export default Ember.Component.extend({
|
|||
|
||||
discardEdits() {
|
||||
this.attrs.onCancel();
|
||||
}
|
||||
},
|
||||
|
||||
onInsertLink(selection) {
|
||||
return this.get('onInsertLink')(selection);
|
||||
},
|
||||
|
||||
onPreview() {
|
||||
return this.get('onPreview')();
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue