dev-juju / codebox

Code highlighting tool for Editor.js
Other
39 stars 19 forks source link

Add support for read only codebox. #18

Open HarveyRDonnelly opened 2 years ago

HarveyRDonnelly commented 2 years ago

πŸ€” This is a New Feature.

πŸ”— Related issue link

Most editor-js tools support a read-only mode and so there is a desire for this tool to offer the same functionality.

πŸ’‘ Background and solution

Added readOnly attribute to the constructor. Then added relevant logic to the render function to disable editability of code area when CodeBox.readOnly is true. Followed convention for other editor-js tools.

πŸ“ Changelog

Language Changelog
πŸ‡ΊπŸ‡Έ English

β˜‘οΈ Self Check before Merge

Xoshbin commented 2 years ago

Thank you @HarveyRDonnelly @dev-juju When would this be merged please?