2018-01-30 13:58:28 +03:00
|
|
|
// Atoms are effectively read-only inline cards
|
|
|
|
// Full docs: https://github.com/bustle/mobiledoc-kit/blob/master/ATOMS.md
|
|
|
|
|
2021-07-23 11:19:11 +03:00
|
|
|
// import createComponentAtom from '../utils/create-component-atom';
|
2021-07-22 20:54:35 +03:00
|
|
|
|
2021-07-23 11:19:11 +03:00
|
|
|
export const ATOM_COMPONENT_MAP = {};
|
2021-07-22 20:54:35 +03:00
|
|
|
|
2018-01-30 13:58:28 +03:00
|
|
|
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');
|
|
|
|
}
|
2021-07-23 11:19:11 +03:00
|
|
|
}
|
2018-01-30 13:58:28 +03:00
|
|
|
];
|