Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 784 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 784 Bytes

CodeMirror ReadOnly Ranges Extension

(Please consider giving a 🌟 to this repository if it is relevant for you)

https://www.npmjs.com/package/codemirror-readonly-ranges

This library aims to help you dealing with read-only ranges on CodeMirror 6.

Features

By defining read-only ranges, the extension is able to:

  • preventModifyTargetRanges: Prevent any changes over the declared read-only ranges.
  • smartDelete: Handle delete selection by excluding the declared read-only ranges from target selection.
  • smartPaste: Handle input paste by excluding the declared read-only ranges from target selection.

Documentation

Full documentation at: https://andrebnassis.github.io/codemirror-readonly-ranges

  • Installation
  • Getting Started
  • Code Sample
  • Contribuiting