Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for read only codebox. #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HarveyRDonnelly
Copy link

@HarveyRDonnelly HarveyRDonnelly commented May 25, 2022

🤔 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

  • ☑️ Doc is updated/provided or not needed
  • ☑️ Demo/Example is updated/provided or not needed
  • ☑️ Changelog is provided or not needed

@Xoshbin
Copy link

Xoshbin commented Sep 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants