react-simple-code-editor

Simple no-frills code editor with syntax highlighting

MIT License

Downloads
1M
Stars
1.5K
Committers
16

Bot releases are hidden (Show)

react-simple-code-editor - Release 0.14.1 Latest Release

Published by oliviertassinari 4 months ago

Bug fixes

  • Fix padding type regression (#129) @oliviertassinari
react-simple-code-editor - Release 0.14.0

Published by oliviertassinari 4 months ago

2024-07-02

Breaking changes

  • Drop support for React < 16.8.0. (#125) @aarongarciah

Developers now need to type the ref differently since it isn't a class component anymore:

-const ref = React.useRef<Editor>(null);
+const ref = React.useRef<React.ComponentRef<typeof Editor>>(null);

In practice, few projects should be impacted by this change:

https://tools-public.mui.com/prod/pages/npmVersion?package=react-dom

@oliviertassinari: I believe it's time. React 19 continues to move away from class components, e.g. https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-removing-legacy-context.

This change brings a small bundle size reduction as well:

https://bundlephobia.com/package/[email protected]

Bug fixes

  • Fix broken link to docs on the README (#111) @gokhanmeteerturk
  • Fix broken link to docs on the README (3e974ea) @oliviertassinari
  • Fix wrong reference to file extension to deploy the docs (86129bb) @oliviertassinari
  • Replace a few event.keyCode with event.key (#102) @oliviertassinari
react-simple-code-editor - Release 0.13.1

Published by oliviertassinari about 2 years ago

0.13.1 (2022-09-27)

Bug Fixes

  • remove deprecated <style> type (#98) (e55609f)
react-simple-code-editor - Release 0.13.0

Published by satya164 about 2 years ago

0.13.0 (2022-08-18)

Bug Fixes

  • improve text highlighting experience (#95) (ff082f8)

Features

  • allow padding sides to be set individually (#96) (7f10c67)
react-simple-code-editor - Release 0.11.3

Published by satya164 about 2 years ago

0.11.3 (2022-08-09)

Bug Fixes

  • fix sourceMap support for package (#93) (30aa44b)
  • use window instead of global. fixes #86 (1910895)
react-simple-code-editor - Release 0.11.2

Published by satya164 over 2 years ago

0.11.2 (2022-05-30)

Bug Fixes

react-simple-code-editor - Release 0.11.1

Published by satya164 over 2 years ago

0.11.1 (2022-05-30)

Bug Fixes

  • don't use fixed versions for peer deps (7b8190c)
react-simple-code-editor - Release 0.11.0

Published by satya164 almost 5 years ago

0.11.0 (2020-01-17)

Features

  • add textareaClassName and preClassName props (20b3ec8)
react-simple-code-editor - Release 0.10.0

Published by satya164 about 5 years ago

0.10.0 (2019-09-30)

react-simple-code-editor - Release 0.9.16

Published by satya164 about 5 years ago

react-simple-code-editor - Release 0.9.10

Published by satya164 over 5 years ago

react-simple-code-editor - Release 0.9.9

Published by satya164 over 5 years ago

Bug Fixes

  • prevent layout properties to be set on children (6feba96)
react-simple-code-editor - Release 0.9.8

Published by satya164 over 5 years ago

Bug Fixes

  • properly handle tab characters (394c159)
react-simple-code-editor - Release 0.9.4

Published by satya164 over 5 years ago

Bug Fixes

  • wrap around long lines with no spaces (#24) (bd655a8)
react-simple-code-editor - Release 0.9.3

Published by satya164 over 5 years ago

Bug Fixes

  • add missing overflow on textarea (56a12db)
react-simple-code-editor - Release 0.9.2

Published by satya164 over 5 years ago

Bug Fixes

  • explictly make highlighted area bg to none (d00da98)
react-simple-code-editor - Release 0.9.1

Published by satya164 over 5 years ago

Enhancements

  • Use a media query hack to apply IE specific CSS to avoid extra setState on mount in IE (#22) (010d37a)
react-simple-code-editor - Release 0.9.0

Published by satya164 over 5 years ago

Bug Fixes

Features

  • add a textareaId prop to textarea. fixes #9 (728d042)
  • add onClick and onKeyUp events (e72a70a)
  • add onKeyDown event to allow user to bail (9935e6f), closes #17
react-simple-code-editor - Release 0.8.0

Published by satya164 almost 6 years ago

Features

  • add typescript definitions (3559652)
react-simple-code-editor - Release 0.7.1

Published by satya164 almost 6 years ago

Package Rankings
Top 0.98% on Npmjs.org
Badges
Extracted from project README
Build Status MIT License Version Bundle size (minified + gzip)
Related Projects