codemirror Questions
4
Solved
I am writing some cypress test for the Codemirror Editor. I have use cypress to type in the input field.
I am trying to achieve the cy.type() in the CodeMirror Editor. The Data I have in codemirror...
Tickler asked 26/3, 2019 at 17:20
3
Solved
How do I make a CodeMirror editor and its gutter 100% of the height of its parent?
For example, on jsfiddle, the editors have a 100% height gray gutter.
I've gone through the CSS trying to make...
Eames asked 10/11, 2014 at 23:35
2
Solved
I would like to add a ruler at 80 characters. I know that you can add rulers to CodeMirror, but I don't know if I'm supposed to place the corresponding javascript in a file somewhere, or in Jupyter...
Chromatograph asked 16/3, 2018 at 14:0
7
Solved
I try to set id4 in the following code:
<div id="id1">
<div id="id2">
<div id="id3">
<textarea id="id4"></textarea>
</div>
</div>
</div>
By u...
Snaffle asked 4/12, 2011 at 21:19
2
Solved
I am using the code-mirror wrapper from https://github.com/TypeCtrl/ngx-codemirror
I am trying to get the instance of Codemirror or the Editor to edit some actions but I am not able to get the ins...
Hesper asked 1/6, 2018 at 11:11
6
I need to change the background color of the selected text using codemirror.
Can anyone help?
Portingale asked 9/9, 2012 at 13:53
7
Solved
I would like to use the functionality of CodeMirror (such as linenumbering, wrapping, search, etc.) for plain text, without particular need of code highlightening but instead with Google Chrome spe...
Austine asked 9/9, 2012 at 23:47
4
Solved
I'm trying to use an event emitter with React useEffect and useState, but it always gets the initial state instead of the updated state. It works if I call the event handler directly, even with a s...
Pantomime asked 14/3, 2019 at 2:44
3
I'm using codemirror latest (v5.49.0). for my electron text editor app, sometimes line numbers are rendered overlapped with the text. cannot reproduce the bug because it doesn't happen always. easi...
Shortcake asked 20/11, 2019 at 10:11
4
I'm trying to make it so when you go over a certain amount of text and it reaches the max-width of the codemirror it will bring you down to a new line instead of just making a scrollbar and making ...
Pedal asked 3/11, 2013 at 19:16
16
Solved
I am using codemirror 2 and its working fine except that the editor's set value doesn't load into the editor until I click the editor and it becomes focused.
I want the editor to show the content...
Vegetarianism asked 1/12, 2011 at 23:1
2
Solved
I am trying to use codemirror to my website a versatile text editor implemented in JavaScript for the browser. But the syntax highlight is not working. codeMirror Documentation didn't help me much....
Bev asked 2/11, 2015 at 21:21
2
There is a nice example of how to make a fullscreen version of the CodeMirror editor. However this is not going to work if the CodeMirror widget is in the middle of some other position: absolute or...
Tallent asked 14/10, 2011 at 10:3
5
Solved
I would like to reset all the contents of the Codemirror editor. Ideally, this should clear the textarea, remove all marks and clear the history.
What's the best way to achieve this?
Broody asked 4/5, 2013 at 19:56
8
Solved
Does anybody know how to make a codemirror textarea resizable like text-area ?
So that the codemirror textarea can be resized by dragging their bottom down grabber corner.
I know it's possible fo...
Sociable asked 20/12, 2012 at 17:18
4
Solved
I am trying to change font-family and font-size of my CodeMirror editor. I tried changing it by setting the according CSS attributes but it does not seem to work for me:
.codemirror-textarea {
fo...
Kiblah asked 7/12, 2017 at 14:8
3
I am implementing "find and correct" functionality using codemirror. I know there is an addon for search and replace, but it doesn't fulfill my requirement. the editor is for writing particular que...
Overtake asked 28/10, 2015 at 15:16
2
I know you use
editor.setValue("");
to set one value but how do you append in CodeMirror?
IE:
editor.appendText();?
Estaestablish asked 22/9, 2013 at 17:16
3
Solved
I'm building a simple code editor to help children learn HTML. One feature I'm trying to add is that when users mouseover their rendered code (in an iframe), the corresponding HTML code in the edit...
Foulk asked 13/6, 2022 at 8:19
1
Solved
Calling console.log(editor.state.doc) reveals:
TextLeaf {
text: ["Test Text"],
length: 9,
Symbol(Symbol.iterator): function
}
So the text or editors value is there, however if I call ...
Smarm asked 22/6, 2022 at 13:6
2
Solved
I am trying to change a codemirror mode on the fly using the methode below, but it is unfortunately not working and your help is welcome
I have a select menu such :
<select name="idLanguage" i...
Hollie asked 9/11, 2013 at 2:4
7
Solved
I am using Codemirror's plugin for textarea but I am not able to retrieve the value of textarea.
Code:
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
...
Penick asked 23/4, 2012 at 17:30
1
Solved
I want the contents / value of a CodeMirror 6 editor instance to be reflected in an external variable, when the text changes the variable changes / syncs.
How to do that in CodeMirror 6?
Pseudo Cod...
Frodeen asked 27/5, 2022 at 11:48
3
Solved
I'm trying to style code samples with CodeMirror, but it works partially - it applies the selected theme to the textarea but the syntax is not highlighted.
There is my page:
<textarea id="temp...
I asked 12/7, 2013 at 19:36
3
Solved
Can I set a particular number of lines (sucessive or not) to read-only mode?
For example: I have a document where I don't want the contents of some sections to be changed (like in Word, where you ...
Cuellar asked 1/7, 2013 at 23:12
1 Next >
© 2022 - 2025 — McMap. All rights reserved.