Closed billzt closed 3 years ago
Fix this issue could be hard 🤪
I can not simply reject or skip certain tags like input
/ textarea
while walking through nodes, cause many websites use other elements to build their own input area. 😑
Fix this issue could be hard 🤪 I can not simply reject or skip certain tags like
input
/textarea
while walking through nodes, cause many websites use other elements to build their own input area. 😑
However this bug only appears in the new 2.0 version
Fix this issue could be hard 🤪 I can not simply reject or skip certain tags like
input
/textarea
while walking through nodes, cause many websites use other elements to build their own input area. 😑However this bug only appears in the new 2.0 version
Yes/No, if you disabled "Dynamic Convert" then this issue is gone.
Thank you, but I have to try on next Monday.
I have same issue with text input area as well, gmail in my case. Cursor will reset to the beginning of line after auto-convert is triggered I believe. Disabling Auto Convert per domain will "fix" it but it makes one of the key features unusable sadly.
Browser: Brave Version 1.22.71 Chromium: 89.0.4389.114 (Official Build) (x86_64)
Look at my Chrome extension "Phonetically Intuitive English" () for how to skip textarea, contentEditable elements and the like: https://sites.google.com/site/phoneticallyintuitiveenglish/
Specifically, it uses such code:
if (
node.parentNode
&& node.parentNode.isContentEditable==false
&& /^textarea$|^script$|^noscript$|^style$|^title$|^#cdata-section$|^#comment$|^option$/i.test(node.parentNode.nodeName)==false
&& node.nodeType==3 // is a text node
&& /^\s*$/.test(node.nodeValue)==false
&& /^gbqfs|^nopie|^collapseButton|^NavToggle/.test(node.parentNode.id)==false // not google front page buttons, "Word Translator" UI elements, Wikipedia toggles
&& (/^div$|^span$/i.test(node.parentNode.nodeName)==false || isHidden(node.parentNode)==false)
//&& (/^div$|^span$/i.test(node.parentNode.nodeName)==false || node.parentNode.offsetWidth>0)
) {
@yaoziyuan Yes, I have the same idea to reject all node with a contenteditable attribute.
I can repro the bug in Gmail as well. And I'm not typing Chinese, only English. If "Dynamic Update" is turned off then the issue is fixed.
If a website has been set to auto-conversion, it is extremely difficult to type Chinese into the textarea in the website since the curses would keep jumping everywhere.
OS: Win7 Browser: Firefox 87.0 Input Method: https://pinyin.thunisoft.com