@@ -6,6 +6,7 @@ import createLinkDecorator from './linkDecorator';
66import createBoldDecorator from './boldDecorator' ;
77import createEmphasisDecorator from './emphasisDecorator' ;
88import createStriketroughDecorator from './strikethroughDecorator' ;
9+ import createQuoteDecorator from './quoteDecorator' ;
910
1011const store = { } ;
1112
@@ -15,6 +16,7 @@ const createMarkdownShortcutsPlugin = (config = {}) => ({
1516 createCheckboxDecorator ( config , store ) ,
1617 createLinkDecorator ( config , store ) ,
1718 createBoldDecorator ( config , store ) ,
19+ createQuoteDecorator ( config , store ) ,
1820 createEmphasisDecorator ( config , store ) ,
1921 createStriketroughDecorator ( config , store ) ,
2022 createHeadingDecorator ( { level : 1 } , store ) ,
@@ -35,7 +37,8 @@ const createMarkdownShortcutsPlugin = (config = {}) => ({
3537 return 'not-handled' ;
3638 } ,
3739 onChange ( editorState ) {
38- console . info ( editorState ) ;
40+ // console.info(editorState.toJS());
41+ window . editorState = editorState ;
3942 return editorState ;
4043 }
4144} ) ;
0 commit comments