Skip to content

Commit

Permalink
disable text editors in htmlcore on android as well for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 24, 2024
1 parent d020a45 commit eadf90d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions htmlcore/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"cogentcore.org/core/styles"
"cogentcore.org/core/styles/states"
"cogentcore.org/core/styles/units"
"cogentcore.org/core/system"
"cogentcore.org/core/texteditor"
"cogentcore.org/core/tree"
"golang.org/x/net/html"
Expand Down Expand Up @@ -123,8 +122,8 @@ func handleElement(ctx *Context) {
case "pre":
hasCode := ctx.Node.FirstChild != nil && ctx.Node.FirstChild.Data == "code"
if hasCode {
if core.TheApp.SystemPlatform() == system.IOS { // TODO: remove this when fixed
New[core.Text](ctx).SetText("<i>Text editors are temporarily disabled on iOS mobile due to stability issues</i>")
if core.TheApp.SystemPlatform().IsMobile() { // TODO: remove this when fixed
New[core.Text](ctx).SetText("<i>Text editors are temporarily disabled on mobile due to stability issues</i>")
break
}
ed := New[texteditor.Editor](ctx)
Expand Down

0 comments on commit eadf90d

Please sign in to comment.