-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable spellcheck for EasyMDE, use contenteditable mode #19776
Enable spellcheck for EasyMDE, use contenteditable mode #19776
Conversation
Turning on the upload function of this image will not work |
Yup, as mentions in the
|
Sorry i didn't notice, i tried changing it and it seems to work, |
Awesome 👍 I applied your patch. I will do more tests with it later and confirm some details (eg: Hmm ... maybe |
Sorry for my patch but didn't work in the edit comments :( |
Edit problem is my modify indexer.go issue, please skip it |
Never mind, I fixed them all. |
1eac2d5
to
7b34b4f
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Thank you for confirming. I think this PR is ready for review. |
🎺 🤖 |
fdab729
to
7c44a3a
Compare
(FYI: the last force-push brings no change, the last commit is still 7c44a3a) |
* upstream/main: [skip ci] Updated translations via Crowdin Enable spellcheck for EasyMDE, use contenteditable mode (go-gitea#19776)
This feature has been deployed on try.gitea.io Feel free to test it and report bugs. If there is something broken seriously, we should either fix it or revert this feature. Hopefully everything goes well. |
There is a chance of missing characters in the Linux ibus input method framework |
Besides Linux IME, the mobile IME may also be affected: Contenteditable on Android is the Absolute Worst If the EasyMDE/CodeMirror still has difficulty to work correctly in some browsers, then it's worth to add a |
If the UI would remember the switch to textarea per-user, it would be a big improvement. And yeah, there should be a server setting for the default. |
Good idea, maybe remember it in LocalStorage is enough, then no need to write backend code. |
We need some simple schema-less key/value JSON ui settings in the db for ui settings like this. localStorage is a start but it should ideally sync across browers. |
|
Ah yes that seems suitable, I totally forgot we landed that :) |
If the nativeSpellcheck default is false, an icon is added to the toolbar as a switch, do you know if there is still a problem? |
The usability problem is not related to spell-check but the editor itself ( |
Maybe let the user check spelling by themselves, and set contenteditable to false if they continue to type |
locking this, as closed PRs are the best place to ensure conversation is lost/not visible to everyone. please open a new ticket to discuss. |
As the title.
Fix #18532
And:
CodeMirror docs indicate that "contenteditable" be the future default on Desktop as well
, so it's good to usecontenteditable
from now on.Tested browsers: