Skip to content

Commit eadf90d

Browse files
committed
disable text editors in htmlcore on android as well for now
1 parent d020a45 commit eadf90d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

htmlcore/handler.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"cogentcore.org/core/styles"
2222
"cogentcore.org/core/styles/states"
2323
"cogentcore.org/core/styles/units"
24-
"cogentcore.org/core/system"
2524
"cogentcore.org/core/texteditor"
2625
"cogentcore.org/core/tree"
2726
"golang.org/x/net/html"
@@ -123,8 +122,8 @@ func handleElement(ctx *Context) {
123122
case "pre":
124123
hasCode := ctx.Node.FirstChild != nil && ctx.Node.FirstChild.Data == "code"
125124
if hasCode {
126-
if core.TheApp.SystemPlatform() == system.IOS { // TODO: remove this when fixed
127-
New[core.Text](ctx).SetText("<i>Text editors are temporarily disabled on iOS mobile due to stability issues</i>")
125+
if core.TheApp.SystemPlatform().IsMobile() { // TODO: remove this when fixed
126+
New[core.Text](ctx).SetText("<i>Text editors are temporarily disabled on mobile due to stability issues</i>")
128127
break
129128
}
130129
ed := New[texteditor.Editor](ctx)

0 commit comments

Comments
 (0)