Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Mar 04:26
· 81 commits to main since this release

npm bundle size

Documentation v2.0.0: https://raw.githack.com/uiwjs/react-textarea-code-editor/98b656f/index.html
Comparing Changes: v1.6.0...v2.0.0

Support dark-mode/night-mode

By default, the dark-mode is automatically switched according to the system. If you need to switch manually, just set the data-color-mode="dark" parameter for html Element.

<html data-color-mode="dark">
document.documentElement.setAttribute('data-color-mode', 'dark')
document.documentElement.setAttribute('data-color-mode', 'light')

Inherit custom color variables by adding .w-tc-editor-var selector.

const Demo = () => {
  return (
    <div>
      <div className="w-tc-editor-var"> </div>
      <CodeEditor value={code} />
    </div>
  )
}