diff --git a/app/components/SimpleEditor/Editor.js b/app/components/SimpleEditor/Editor.js index 5386b76e52822d586902d3587320c2b37d743639..4633a5df045fd9f8482825be11e77aa48aa0bd4c 100644 --- a/app/components/SimpleEditor/Editor.js +++ b/app/components/SimpleEditor/Editor.js @@ -73,7 +73,7 @@ class Editor extends ProseEditor { // TODO -- unnecessary // posssibly breaks book builder dnd let ContextMenu = this.componentRegistry.get('context-menu') // new what does it do? - let Dropzones = this.componentRegistry.get('dropzones') // new what does it do? + // let Dropzones = this.componentRegistry.get('dropzones') // new what does it do? const footerNotes = $$(Notes) @@ -114,12 +114,13 @@ class Editor extends ProseEditor { }) .append(editorWithComments, $$(Overlay), - $$(ContextMenu), - $$(Dropzones)) + $$(ContextMenu) + // $$(Dropzones) + ) .attr('id', 'content-panel') .ref('contentPanel') - var contentPanelWithSplitPane = $$(SplitPane, { sizeA: '75%', splitType: 'vertical' }) + const contentPanelWithSplitPane = $$(SplitPane, { sizeA: '75%', splitType: 'vertical' }) .append( contentPanel, toc @@ -166,10 +167,10 @@ class Editor extends ProseEditor { trackChanges: this.props.trackChanges, trackChangesView: this.state.trackChangesView, toolGroups: [ + 'text', + 'document', 'annotations', 'default', - 'document', - 'text', 'track-change-enable', 'track-change-toggle-view' ] diff --git a/app/components/SimpleEditor/config.js b/app/components/SimpleEditor/config.js index a45aa9398afa33b188509df3b5d1e086199ca388..35d73bf5564c9d94dba3593ad7d00e2092d42277 100644 --- a/app/components/SimpleEditor/config.js +++ b/app/components/SimpleEditor/config.js @@ -1,5 +1,6 @@ import { BasePackage, + // Blockquote, CodePackage, EmphasisPackage, HeadingPackage, @@ -36,6 +37,7 @@ let config = { config.import(BasePackage, { noBaseStyles: options.noBaseStyles }) + config.import(SwitchTextTypePackage) config.import(ParagraphPackage) config.import(HeadingPackage) @@ -46,6 +48,8 @@ let config = { config.import(CodePackage) config.import(PersistencePackage) + // console.log(Blockquote) + // config.import(CodeblockPackage) config.import(CommentPackage) config.import(ExtractPackage) diff --git a/app/components/SimpleEditor/panes/Comments/CommentsProvider.js b/app/components/SimpleEditor/panes/Comments/CommentsProvider.js index e013645f0f29e5efb34af5e06c674651a5c839e4..ebf24032e3324101ee5804348175b694368e3cec 100644 --- a/app/components/SimpleEditor/panes/Comments/CommentsProvider.js +++ b/app/components/SimpleEditor/panes/Comments/CommentsProvider.js @@ -67,7 +67,6 @@ class CommentsProvider extends TocProvider { // runs when document session is updated updateActiveEntry () { - console.log('updateActiveEntry') const activeEntry = this.getActiveEntry() const selectionContainsComments = this.selectionContainsComments() diff --git a/app/components/SimpleEditor/panes/TableOfContents/TableOfContents.js b/app/components/SimpleEditor/panes/TableOfContents/TableOfContents.js index 218354b6f92bbc041eb04b4c4f0f3b3af696b16c..f60ffc5a7b53ae3447fc8c616c8185f6c434f94f 100644 --- a/app/components/SimpleEditor/panes/TableOfContents/TableOfContents.js +++ b/app/components/SimpleEditor/panes/TableOfContents/TableOfContents.js @@ -29,8 +29,7 @@ class TableOfContents extends Toc { } render ($$) { - const provider = this.getProvider() - const { book, fragment } = provider.config.props + const { book, fragment } = this.props const tocProvider = this.getProvider() const activeEntry = tocProvider.activeEntry