From b816e0ed3294f001db9b7117462d1d5fcbe28a6d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 16 Mar 2021 15:47:28 +0100 Subject: [PATCH] :bug: Fix possible issue with advanced compilation. --- frontend/src/app/util/text_editor_impl.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/util/text_editor_impl.js b/frontend/src/app/util/text_editor_impl.js index 5e8f717597..e81e06375a 100644 --- a/frontend/src/app/util/text_editor_impl.js +++ b/frontend/src/app/util/text_editor_impl.js @@ -42,7 +42,7 @@ export function createDecorator(type, component) { }; return new CompositeDecorator([ - {strategy, component} + {"strategy": strategy, "component": component} ]); } @@ -75,9 +75,9 @@ function modifySelectedBlocks(contentState, selectionState, operation) { }).concat(Map([[endKey, blockMap.get(endKey)]])).map(operation); return contentState.merge({ - blockMap: blockMap.merge(newBlocks), - selectionBefore: selectionState, - selectionAfter: selectionState + "blockMap": blockMap.merge(newBlocks), + "selectionBefore": selectionState, + "selectionAfter": selectionState }); } @@ -205,6 +205,6 @@ export function removeInlineStylePrefix(contentState, selectionState, stylePrefi sliceStart++; } - return block.set('characterList', chars); + return block.set("characterList", chars); }); }