mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Allow copying JavaScript from examples
This commit is contained in:
@@ -372,6 +372,10 @@ textarea {
|
||||
font-weight: 400;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.CodeMirror-cursor {
|
||||
/* https://github.com/codemirror/CodeMirror/issues/2568 */
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*
|
||||
* Try CoffeeScript
|
||||
@@ -3655,7 +3659,7 @@ $(document).ready ->
|
||||
lineWrapping: on
|
||||
lineNumbers: off
|
||||
inputStyle: 'contenteditable'
|
||||
readOnly: if mode is 'coffeescript' then no else 'nocursor'
|
||||
readOnly: mode isnt 'coffeescript' # Can’t use 'nocursor' if we want the JavaScript to be copyable
|
||||
viewportMargin: Infinity
|
||||
|
||||
# Whenever the user edits the CoffeeScript side of a code example, update the JavaScript output
|
||||
|
||||
@@ -56,7 +56,7 @@ $(document).ready ->
|
||||
lineWrapping: on
|
||||
lineNumbers: off
|
||||
inputStyle: 'contenteditable'
|
||||
readOnly: if mode is 'coffeescript' then no else 'nocursor'
|
||||
readOnly: mode isnt 'coffeescript' # Can’t use 'nocursor' if we want the JavaScript to be copyable
|
||||
viewportMargin: Infinity
|
||||
|
||||
# Whenever the user edits the CoffeeScript side of a code example, update the JavaScript output
|
||||
|
||||
@@ -352,6 +352,10 @@ textarea {
|
||||
font-weight: 400;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.CodeMirror-cursor {
|
||||
/* https://github.com/codemirror/CodeMirror/issues/2568 */
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*
|
||||
* Try CoffeeScript
|
||||
|
||||
Reference in New Issue
Block a user