- Closes #647
main
Mike Fix 6 years ago
parent 5b6c760424
commit cacb93e09f

@ -150,7 +150,9 @@ class Editor extends React.Component {
node.querySelectorAll('span[role="presentation"]').forEach(node => {
if (node.innerText && node.innerText.match(/%[A-Za-z0-9]{2}/)) {
map.set(node, node.innerText)
node.innerText = encodeURIComponent(node.innerText)
node.innerText.match(/%[A-Za-z0-9]{2}/g).forEach(t => {
node.innerText = node.innerText.replace(t, encodeURIComponent(t))
})
}
})
}

Loading…
Cancel
Save