mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
34e34618c3
refs https://github.com/TryGhost/Team/issues/1206 - added `@allowBr` argument to `<KoenigBasicHtmlInput>` and used it in the callout card - when enabled, adds `soft-break` atom and parser, enables `<br>` support in `cleanBasicHtml()`
21 lines
509 B
JavaScript
21 lines
509 B
JavaScript
// 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 = {};
|
|
|
|
// soft-return is triggered by SHIFT+ENTER and allows for line breaks
|
|
// without creating paragraphs
|
|
export const softReturn = {
|
|
name: 'soft-return',
|
|
type: 'dom',
|
|
render() {
|
|
return document.createElement('br');
|
|
}
|
|
};
|
|
|
|
export default [
|
|
softReturn
|
|
];
|