Open wh201906 opened 1 year ago
I‘m pretty sure this bug is related to the CodeMirror, so I did some tests and found something interesting.
navigator.userAgent
in the console. the UA is like
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Joplin/2.9.11 Chrome/102.0.5005.167 Electron/19.0.10 Safari/537.36
I replace the UA of my browser with this one by User-Agent Switcher and Manager. When I try the demo again, it becomes buggy.
The IME panel covers all of the letters and doesn't move.
webkit
by testing if the UA contains WebKit/
, but the UA of the Joplin also satisfies, which is acturally based on chromium(Electron).
If the browser is webkit
, the behavior is slightly different
https://github.com/codemirror/codemirror5/blob/9974ded36bf01746eb2a00926916fef834d3d0d0/src/input/input.js#L129-L130
I tested the regex in the console of Joplin and checked the properties of the <textarea>
, and I'm sure the Joplin app is taken for a webkit browser.
(width is 1000px, doesn't have wrap="off"
)
wrap="off"
)but this bug still exists.
Here are some different <textarea>
in different situations.
CodeMirror5 demo ![图片](https://github.com/laurent22/joplin/assets/62299611/0ca95a34-ce9e-4874-b49a-f84621239aa8) CodeMirror5 demo, with modified UA ![图片](https://github.com/laurent22/joplin/assets/62299611/19f82680-6379-44ea-bc7f-2ef32cedc2e3) Joplin ![图片](https://github.com/laurent22/joplin/assets/62299611/2e40a31e-3c3b-4bb1-9ca7-8aaffb168381) Joplin, with patched CodeMirror ![图片](https://github.com/laurent22/joplin/assets/62299611/b3a2b8ab-1806-429a-8c95-2dc7932f82d9)
It's strange that the IME panel doesn't follow the bottom-left corner of textarea in the last situation.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open
This is a bug involving CodeMirror. It is not a fundamental solution, but can be mitigated in the following ways
First, open the "Tools" menu > "Options". Select "Appearance" from the left menu and note "Editor font size".
Next, go to "Show Advanced Settings" and open "Custom stylesheet for Joplin-wide app styles".
Save the following content, where the value specified for font-size should be the same as the "Editor font size" value.
div.CodeMirror textarea {
font-size: 18px;
}
@forrep This workaround does work. Thanks! I still want to keep this issue open. Maybe someone will find the underlying reason and resolve it.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open. This bug seems to be fixed in the new beta editor based on CodeMirror 6, but still exists in the editor with CodeMirror 5.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Please keep this open. This bug seems to be fixed in the new beta editor based on CodeMirror 6, but still exists in the editor with CodeMirror 5.
Joplin 3.0.2 (prod, win32)
Backup: 1.4.0 macOS theme: 1.3.18
这个版本还是有毛病,用了前面老哥的方法,微软输入法的虚线还是被遮住了,不知道换成百度搜狗这些流氓大厂会不会好点。
Duplicate of #8078, but I want to describe it in detail so I post it there. When typing the letters with the Microsoft Chinese IME, the IME panel covers the letters I'm typing in. This might happens on Japanese IME and other IMEs, but I don't have the environment to test it.
Environment
Joplin version: 2.9.11, 2.10.18 Platform: Windows 10
Steps to reproduce
Previews
![图片](https://github.com/laurent22/joplin/assets/62299611/b0f4f650-4dc7-4772-b2d8-530a22795cee)![图片](https://github.com/laurent22/joplin/assets/62299611/e42dd212-3ad6-49bc-b978-cf66f89e8c32)![图片](https://github.com/laurent22/joplin/assets/62299611/8a1d16a7-e8da-4988-90f6-939d716996db)Previews
![图片](https://github.com/laurent22/joplin/assets/62299611/1d3f9abd-c8ce-404f-87e8-0f6718ae2338)![图片](https://github.com/laurent22/joplin/assets/62299611/fdf2f4d9-5df1-4494-8ea9-cdb26f20e63f)![图片](https://github.com/laurent22/joplin/assets/62299611/019c88dd-55f5-4516-be02-622c887f3538)Previews
![图片](https://github.com/laurent22/joplin/assets/62299611/7a3d7348-b495-4639-b675-ca40d12cee05)![图片](https://github.com/laurent22/joplin/assets/62299611/4ef6d72a-7557-434b-ae3c-08fcd5633d19)![图片](https://github.com/laurent22/joplin/assets/62299611/b7d9e609-026d-427b-99e7-9836c9c4fd76)Describe what you expected to happen
The IME panel should not covers the letters. It could be under the line I'm editing or behind the cursor.
Logfile
Not necessary I guess