Using Codemirror Addons
See original GitHub issueI’d like to take advantage of the Placeholder addon. This requires adding a placeholder
attribute to the textarea
. Can this react-codemirror component be extended to include the ability to add attributes directly to the textarea
element that gets generated?
Issue Analytics
- State:
- Created 8 years ago
- Comments:10
Top Results From Across the Web
CodeMirror 5 User Manual
CodeMirror is a code-editor component that can be embedded in Web pages. The core library provides only the editor component, no accompanying buttons,...
Read more >Codemirror, how to add add-ons - Stack Overflow
First, you have to add the scrollpastend.js file ...
Read more >codemirror-addon · GitHub Topics
Add this topic to your repo. To associate your repository with the codemirror-addon topic, visit your repo's landing page and select "manage topics."...
Read more >codemirror-show-hint-addon-options - npm
CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with over 100 ......
Read more >How to use the codemirror.defineOption function in ... - Snyk
To help you get started, we've selected a few codemirror examples, based on popular ways it is used in public projects. ... Secure...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davedawson @JedWatson FWIW, I’ve created a fork of this component and implemented the placeholder functionality. I can open a PR if you’re open to that.
https://github.com/cafreeman/react-codemirror/commit/a3d1f6c83798119bee408d9d91a5965b435fe19d
It doesn’t work just by setting
placeholder
under the options object for me @RahavLussato. I also had to require the plugin usingrequire('codemirror/addon/display/placeholder')