├── .babelrc ├── .eslintrc.js ├── .gitignore ├── README.md ├── demo ├── data.ts ├── index.html └── index.tsx ├── package.json ├── src ├── _types.ts ├── app.css ├── blockRenderMap.ts ├── callbacks.ts ├── constants.ts ├── decorators │ └── link │ │ ├── index.ts │ │ └── link.tsx ├── editor │ ├── container.tsx │ └── index.tsx ├── global.d.ts ├── hooks │ ├── theme.ts │ ├── useStore.ts │ └── useThunkReducer.ts ├── index.tsx ├── plugins │ ├── anchor │ │ ├── index.ts │ │ └── linkStyles.module.css │ ├── buttons │ │ └── Buttons.tsx │ ├── divider │ │ ├── divider.module.css │ │ └── index.ts │ ├── embed │ │ ├── component.tsx │ │ ├── createEmbedPlugin.tsx │ │ ├── index.ts │ │ ├── modifiers.ts │ │ ├── theme.module.css │ │ ├── types.ts │ │ └── validate.ts │ ├── focus │ │ ├── focus.module.css │ │ └── index.ts │ ├── image │ │ ├── actions.ts │ │ ├── component.tsx │ │ ├── createImagePlugin.tsx │ │ ├── index.tsx │ │ ├── modifiers.ts │ │ └── types.ts │ ├── index.ts │ ├── inline-toolbar │ │ ├── buttonStyles.module.css │ │ ├── index.ts │ │ ├── inlineToolbar.tsx │ │ └── toolbarStyles.module.css │ ├── mobile-toolbar │ │ ├── index.ts │ │ ├── mobileToolbar.css │ │ └── mobileToolbar.tsx │ ├── placeholder │ │ ├── button.tsx │ │ ├── component.tsx │ │ ├── createPlaceholderPlugin.tsx │ │ ├── index.ts │ │ ├── modifiers.ts │ │ └── theme.module.css │ ├── plugins.ts │ ├── side-toolbar │ │ ├── blockTypeSelectStyles.module.css │ │ ├── index.ts │ │ └── sideToolbar.tsx │ ├── utils.ts │ └── withPlugins.tsx ├── store │ ├── actions.ts │ ├── index.tsx │ ├── reducer.ts │ └── types.ts ├── theme.css ├── types.ts └── utils │ ├── decorateComponentWithProps.tsx │ ├── export.tsx │ ├── helper.ts │ ├── import.tsx │ └── modifiers.ts ├── tsconfig.build.json ├── tsconfig.compiler.json ├── tsconfig.json ├── webpack.config.demo.js ├── webpack.config.prod.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | umd 3 | dist 4 | build 5 | .bin 6 | .DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/README.md -------------------------------------------------------------------------------- /demo/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/demo/data.ts -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/demo/index.html -------------------------------------------------------------------------------- /demo/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/demo/index.tsx -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/package.json -------------------------------------------------------------------------------- /src/_types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/_types.ts -------------------------------------------------------------------------------- /src/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/app.css -------------------------------------------------------------------------------- /src/blockRenderMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/blockRenderMap.ts -------------------------------------------------------------------------------- /src/callbacks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/callbacks.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/decorators/link/index.ts: -------------------------------------------------------------------------------- 1 | export { linkDecorator } from "./link"; 2 | -------------------------------------------------------------------------------- /src/decorators/link/link.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/decorators/link/link.tsx -------------------------------------------------------------------------------- /src/editor/container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/editor/container.tsx -------------------------------------------------------------------------------- /src/editor/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/editor/index.tsx -------------------------------------------------------------------------------- /src/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/global.d.ts -------------------------------------------------------------------------------- /src/hooks/theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/hooks/theme.ts -------------------------------------------------------------------------------- /src/hooks/useStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/hooks/useStore.ts -------------------------------------------------------------------------------- /src/hooks/useThunkReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/hooks/useThunkReducer.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/plugins/anchor/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/anchor/index.ts -------------------------------------------------------------------------------- /src/plugins/anchor/linkStyles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/anchor/linkStyles.module.css -------------------------------------------------------------------------------- /src/plugins/buttons/Buttons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/buttons/Buttons.tsx -------------------------------------------------------------------------------- /src/plugins/divider/divider.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/divider/divider.module.css -------------------------------------------------------------------------------- /src/plugins/divider/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/divider/index.ts -------------------------------------------------------------------------------- /src/plugins/embed/component.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/component.tsx -------------------------------------------------------------------------------- /src/plugins/embed/createEmbedPlugin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/createEmbedPlugin.tsx -------------------------------------------------------------------------------- /src/plugins/embed/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/index.ts -------------------------------------------------------------------------------- /src/plugins/embed/modifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/modifiers.ts -------------------------------------------------------------------------------- /src/plugins/embed/theme.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/theme.module.css -------------------------------------------------------------------------------- /src/plugins/embed/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/types.ts -------------------------------------------------------------------------------- /src/plugins/embed/validate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/embed/validate.ts -------------------------------------------------------------------------------- /src/plugins/focus/focus.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/focus/focus.module.css -------------------------------------------------------------------------------- /src/plugins/focus/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/focus/index.ts -------------------------------------------------------------------------------- /src/plugins/image/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/image/actions.ts -------------------------------------------------------------------------------- /src/plugins/image/component.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/image/component.tsx -------------------------------------------------------------------------------- /src/plugins/image/createImagePlugin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/image/createImagePlugin.tsx -------------------------------------------------------------------------------- /src/plugins/image/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/image/index.tsx -------------------------------------------------------------------------------- /src/plugins/image/modifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/image/modifiers.ts -------------------------------------------------------------------------------- /src/plugins/image/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/image/types.ts -------------------------------------------------------------------------------- /src/plugins/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/index.ts -------------------------------------------------------------------------------- /src/plugins/inline-toolbar/buttonStyles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/inline-toolbar/buttonStyles.module.css -------------------------------------------------------------------------------- /src/plugins/inline-toolbar/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/inline-toolbar/index.ts -------------------------------------------------------------------------------- /src/plugins/inline-toolbar/inlineToolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/inline-toolbar/inlineToolbar.tsx -------------------------------------------------------------------------------- /src/plugins/inline-toolbar/toolbarStyles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/inline-toolbar/toolbarStyles.module.css -------------------------------------------------------------------------------- /src/plugins/mobile-toolbar/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/mobile-toolbar/index.ts -------------------------------------------------------------------------------- /src/plugins/mobile-toolbar/mobileToolbar.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/mobile-toolbar/mobileToolbar.css -------------------------------------------------------------------------------- /src/plugins/mobile-toolbar/mobileToolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/mobile-toolbar/mobileToolbar.tsx -------------------------------------------------------------------------------- /src/plugins/placeholder/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/placeholder/button.tsx -------------------------------------------------------------------------------- /src/plugins/placeholder/component.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/placeholder/component.tsx -------------------------------------------------------------------------------- /src/plugins/placeholder/createPlaceholderPlugin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/placeholder/createPlaceholderPlugin.tsx -------------------------------------------------------------------------------- /src/plugins/placeholder/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/placeholder/index.ts -------------------------------------------------------------------------------- /src/plugins/placeholder/modifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/placeholder/modifiers.ts -------------------------------------------------------------------------------- /src/plugins/placeholder/theme.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/placeholder/theme.module.css -------------------------------------------------------------------------------- /src/plugins/plugins.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/plugins.ts -------------------------------------------------------------------------------- /src/plugins/side-toolbar/blockTypeSelectStyles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/side-toolbar/blockTypeSelectStyles.module.css -------------------------------------------------------------------------------- /src/plugins/side-toolbar/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/side-toolbar/index.ts -------------------------------------------------------------------------------- /src/plugins/side-toolbar/sideToolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/side-toolbar/sideToolbar.tsx -------------------------------------------------------------------------------- /src/plugins/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/utils.ts -------------------------------------------------------------------------------- /src/plugins/withPlugins.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/plugins/withPlugins.tsx -------------------------------------------------------------------------------- /src/store/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/store/actions.ts -------------------------------------------------------------------------------- /src/store/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/store/index.tsx -------------------------------------------------------------------------------- /src/store/reducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/store/reducer.ts -------------------------------------------------------------------------------- /src/store/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/store/types.ts -------------------------------------------------------------------------------- /src/theme.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/decorateComponentWithProps.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/utils/decorateComponentWithProps.tsx -------------------------------------------------------------------------------- /src/utils/export.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/utils/export.tsx -------------------------------------------------------------------------------- /src/utils/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/utils/helper.ts -------------------------------------------------------------------------------- /src/utils/import.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/utils/import.tsx -------------------------------------------------------------------------------- /src/utils/modifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/src/utils/modifiers.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.compiler.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/tsconfig.compiler.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.config.demo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/webpack.config.demo.js -------------------------------------------------------------------------------- /webpack.config.prod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/webpack.config.prod.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/letterpad/editor/HEAD/yarn.lock --------------------------------------------------------------------------------