Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import createDeleteImgPlugin from 'draft-js-delete-img-btn-plugin';
import './Write.less';
import './PostEditor.less';
import Icon from '../../widgets/Icon';
import SideControls from './SideControls';
const debug = newDebug('busy:PostEditor');
const emojiPlugin = createEmojiPlugin();
const hashtagPlugin = createHashtagPlugin();
const linkifyPlugin = createLinkifyPlugin();
const { EmojiSuggestions } = emojiPlugin;
const focusPlugin = createFocusPlugin();
const dndPlugin = createDndPlugin();
const deleteImgPlugin = createDeleteImgPlugin();
const { DeleteImgBtn } = deleteImgPlugin;
const decorator = composeDecorators(focusPlugin.decorator,
dndPlugin.decorator, deleteImgPlugin.decorator);
const imagePlugin = createImagePlugin({ decorator });
const plugins = [
createMarkdownShortcutsPlugin(),
dndPlugin, focusPlugin, imagePlugin,
deleteImgPlugin,
emojiPlugin,
hashtagPlugin,
linkifyPlugin
];
// Custom overrides for "code" style.