Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Don't force selection
dominik-zeglen964b20f63c72
diff --git a/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsx b/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsxindex 4bfbd68172..f7b26a4d8b 100644--- a/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsx+++ b/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsx@@ -40,7 +40,6 @@ class ImageSource extends React.Component<ImageSourceProps> {nextContent,"apply-entity");- EditorState.forceSelection(editorState, editorState.getSelection());onComplete(nextState);} else {const contentWithEntity = content.createEntity(@@ -51,7 +50,7 @@ class ImageSource extends React.Component<ImageSourceProps> {const nextState = AtomicBlockUtils.insertAtomicBlock(editorState,contentWithEntity.getLastCreatedEntityKey(),- ""+ " ");onComplete(nextState);