Skip to content

Disable WYSIWYG editor for mobile user agents [rebased on v1.13] #14022

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

Closed

Conversation

corneliusroemer
Copy link

@corneliusroemer corneliusroemer commented Dec 16, 2020

Written by @ashimokawa for codeberg.org here https://codeberg.org/Codeberg/build-deploy-gitea/commit/840fd48cad0c72933becafbe561addc6cdfb11e2
This PR adds a "custom header" that acts as if a user clicks on the "disable WYSIWYG" button if their user agent suggests a mobile device.

This is clearly only a temporary high-level hotfix for the problem until a more permanent solution is figured out.

I closed the original PR since it was based on "master", now the commit is based on "v1.13" - not sure whether the closing/recreation was necessary. Happy if someone shows me how I could have done it better (I rebased --onto locally)

#14017

Written by @ashimokawa for codeberg.org here https://codeberg.org/Codeberg/build-deploy-gitea/commit/840fd48cad0c72933becafbe561addc6cdfb11e2
This PR adds a "custom header" that acts as if a user clicks on the "disable WYSIWYG" button if their user agent suggests a mobile device.

This is clearly only a temporary high-level hotfix for the problem until a more permanent solution is figured out.
@corneliusroemer corneliusroemer changed the title Disable WYSIWYG editor for mobile user agents (temporary fix) Disable WYSIWYG editor for mobile user agents [rebased on v1.13] Dec 16, 2020
@6543 6543 added type/bug topic/ui Change the appearance of the Gitea UI labels Dec 16, 2020
@6543 6543 added this to the 1.13.1 milestone Dec 16, 2020
@@ -0,0 +1,14 @@
<script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom is where Codeberg put it, makes sense that if it's built in to Gitea, that it's in base.

How do I give you permission to change these things? Allow you to push to my fork? Or do that myself? Or something else?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 16, 2020
@mrsdizzie
Copy link
Member

It should not just load mde editor if on mobile and code should not go inside template, I will submit a PR to fix it that way in a bit

@mrsdizzie mrsdizzie closed this Dec 16, 2020
@6543
Copy link
Member

6543 commented Dec 16, 2020

@corneliusroemer thanks for your effort

If you still like to contribute to gitea - there are easy issues to pickup (not as hard as this one ;) )
-> https://github.com/go-gitea/gitea/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22

@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants