From f8ac7876ec8073f195db34e8f5ada8599ee87a08 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Wed, 16 Dec 2020 16:58:44 +0100 Subject: [PATCH] Disable WYSIWYG editor for mobile user agents (temporary fix) 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. --- templates/custom/header.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/custom/header.tmpl b/templates/custom/header.tmpl index e69de29bb2d1d..b4c5fe90331b8 100644 --- a/templates/custom/header.tmpl +++ b/templates/custom/header.tmpl @@ -0,0 +1,14 @@ + + +