mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-26 05:13:01 +00:00
fix module.exports
This commit is contained in:
@@ -79,6 +79,6 @@ const showAutocompleteEmoji = function(CodeMirror, editor) {
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
showAutocompleteEmoji
|
||||
};
|
||||
@@ -38,7 +38,7 @@ const autoCloseCurlyBraces = function(CodeMirror, cm, typingClosingBrace) {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
autoCloseCurlyBraces : function(CodeMirror, codeMirror) {
|
||||
const map = { name: 'autoCloseCurlyBraces' };
|
||||
map[`'{'`] = function(cm) { return autoCloseCurlyBraces(CodeMirror, cm); };
|
||||
|
||||
@@ -461,5 +461,5 @@ const CodeEditor = createClass({
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = CodeEditor;
|
||||
export default CodeEditor;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
registerHomebreweryHelper : function(CodeMirror) {
|
||||
CodeMirror.registerHelper('fold', 'homebrewerycss', function(cm, start) {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
registerHomebreweryHelper : function(CodeMirror) {
|
||||
CodeMirror.registerHelper('fold', 'homebrewery', function(cm, start) {
|
||||
const matcher = /^\\page.*/;
|
||||
|
||||
Reference in New Issue
Block a user