|
|
@@ -27,10 +27,6 @@ export default class EditorContainer extends Container {
|
|
|
this.state = {
|
|
|
tags: null,
|
|
|
|
|
|
- // grant: 1, // default: public
|
|
|
- // grantGroupId: null,
|
|
|
- // grantGroupName: null,
|
|
|
-
|
|
|
editorOptions: {},
|
|
|
previewOptions: {},
|
|
|
|
|
|
@@ -57,26 +53,6 @@ export default class EditorContainer extends Container {
|
|
|
return 'EditorContainer';
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * initialize state for page permission
|
|
|
- */
|
|
|
- // initStateGrant() {
|
|
|
- // const mainContent = document.getElementById('content-main');
|
|
|
-
|
|
|
- // if (mainContent == null) {
|
|
|
- // logger.debug('#content-main element is not exists');
|
|
|
- // return;
|
|
|
- // }
|
|
|
-
|
|
|
- // this.state.grant = +mainContent.getAttribute('data-page-grant');
|
|
|
-
|
|
|
- // const grantGroupId = mainContent.getAttribute('data-page-grant-group');
|
|
|
- // if (grantGroupId != null && grantGroupId.length > 0) {
|
|
|
- // this.state.grantGroupId = grantGroupId;
|
|
|
- // this.state.grantGroupName = mainContent.getAttribute('data-page-grant-group-name');
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
/**
|
|
|
* initialize state for drafts
|
|
|
*/
|