Ghost/ghost/admin/lib/koenig-editor/addon/options/atoms.js

19 lines
502 B
JavaScript
Raw Normal View History

// Atoms are effectively read-only inline cards
// Full docs: https://github.com/bustle/mobiledoc-kit/blob/master/ATOMS.md
// import createComponentAtom from '../utils/create-component-atom';
export const ATOM_COMPONENT_MAP = {};
export default [
// soft-return is triggered by SHIFT+ENTER and allows for line breaks
// without creating paragraphs
{
name: 'soft-return',
type: 'dom',
render() {
return document.createElement('br');
}
}
];