Skip to content

Commit

Permalink
fix: export getDefaultPlugins and getKeyboardShortcuts methods (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin authored Apr 26, 2022
1 parent 9b178ca commit 931ecf7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 25 deletions.
62 changes: 48 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:demo": "ng test demo --browsers ChromeHeadless --watch false",
"test:lib": "ng test ngx-editor --browsers ChromeHeadless --watch false",
"test": "npm run test:lib && npm run test:demo",
"prepare": "sh ./scripts/install-husky.sh"
"prepare": "is-ci || husky install"
},
"engines": {
"node": ">=16",
Expand Down Expand Up @@ -76,6 +76,7 @@
"eslint": "^8.12.0",
"eslint-config-pegasus": "^3.3.0",
"husky": "^7.0.4",
"is-ci": "^3.0.1",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-editor/src/lib/defaultPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const buildInputRules = (schema: Schema): Plugin => {
return inputRules({ rules });
};

const getKeyboardShortcuts = (schema: Schema, options: ShortcutOptions) => {
export const getKeyboardShortcuts = (schema: Schema, options: ShortcutOptions) => {
const historyKeyMap: Record<string, any> = {};

historyKeyMap['Mod-z'] = undo;
Expand Down
1 change: 1 addition & 0 deletions projects/ngx-editor/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ export * from './lib/validators';
export * from './lib/types';
export * from './lib/parsers';
export { default as Editor } from './lib/Editor';
export * from './lib/defaultPlugins';
9 changes: 0 additions & 9 deletions scripts/install-husky.sh

This file was deleted.

0 comments on commit 931ecf7

Please sign in to comment.