This commit is contained in:
Alexander Zinchuk 2021-08-05 17:35:56 +03:00
parent 2889920e35
commit b7d26b4853

View File

@ -268,7 +268,7 @@ const TextFormatter: FC<OwnProps> = ({
]);
function handleLinkUrlConfirm() {
const formattedLinkUrl = linkUrl.includes('://') ? linkUrl : `http://${linkUrl}`;
const formattedLinkUrl = encodeURI(linkUrl.includes('://') ? linkUrl : `http://${linkUrl}`);
if (isEditingLink) {
const element = getSelectedElement();