Skip to content
Snippets Groups Projects
Commit d916c20d authored by chris's avatar chris Committed by john
Browse files

import commentPackage and add overlay in notes editor

parent 055222c3
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ import {
} from 'substance'
import CommentPackage from '../elements/comment/CommentPackage'
let config = {
name: 'simple-editor',
configure: (config, options) => {
......@@ -26,6 +28,7 @@ let config = {
config.import(StrongPackage)
config.import(PersistencePackage)
config.import(SpellCheckPackage)
config.import(CommentPackage)
}
}
......
......@@ -12,7 +12,9 @@ class MiniEditor extends ProseEditor {
let editor = this._renderEditor($$)
let SplitPane = this.componentRegistry.get('split-pane')
let ScrollPane = this.componentRegistry.get('scroll-pane')
let Overlay = this.componentRegistry.get('overlay')
// TEMP
const commentsPane = $$('ul').addClass('sc-comment-pane-list').addClass('sc-comments-pane').append('notes Editor Comments')
const editorWithComments = $$(SplitPane, { sizeA: '100%', splitType: 'vertical' })
......@@ -25,7 +27,7 @@ class MiniEditor extends ProseEditor {
name: 'miniEditorContentPanel',
scrollbarPosition: 'right'
})
.append(editorWithComments)
.append(editorWithComments, $$(Overlay))
.attr('id', 'content-panel')
.ref('miniEditorContentPanel')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment