Skip to content

Commit

Permalink
Add -webkit-user-modify: read-write-plaintext-only style to content
Browse files Browse the repository at this point in the history
FIX: Hide Safari's native bold/italic/underline controls for the content.

Closes codemirror/dev#526
  • Loading branch information
marijnh committed Jun 29, 2021
1 parent 7542a04 commit 6947980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const baseTheme = buildTheme("." + baseThemeID, {
display: "block",
whiteSpace: "pre",
wordWrap: "normal", // https://github.com/codemirror/codemirror.next/issues/456
WebkitUserModify: "read-write-plaintext-only",
boxSizing: "border-box",

padding: "4px 0",
Expand Down

0 comments on commit 6947980

Please sign in to comment.