Hubwiz.com
|
Online Course
|
API Manual
CodeMirror API Manual
Plugin(43)
Option(49)
Event(46)
Command(52)
Style(10)
Method(166)
Plugin
dialog/dialog.js
search/searchcursor.js
search/search.js
search/jump-to-line.js
search/matchesonscrollbar.js
edit/matchbrackets.js
edit/closebrackets.js
edit/matchtags.js
edit/trailingspace.js
edit/closetag.js
edit/continuelist.js
comment/comment.js
fold/foldcode.js
fold/foldgutter.js
runmode/runmode.js
runmode/colorize.js
mode/overlay.js
mode/multiplex.js
hint/show-hint.js
hint/javascript-hint.js
hint/xml-hint.js
hint/html-hint.js
hint/css-hint.js
hint/anyword-hint.js
hint/sql-hint.js
search/match-highlighter.js
lint/lint.js
selection/mark-selection.js
selection/active-line.js
selection/selection-pointer.js
mode/loadmode.js
mode/meta.js
comment/continuecomment.js
display/placeholder.js
display/fullscreen.js
display/autorefresh.js
scroll/simplescrollbars.js
scroll/annotatescrollbar.js
display/rulers.js
display/panel.js
wrap/hardwrap.js
merge/merge.js
tern/tern.js
Option
value
mode
lineSeparator
theme
indentUnit
smartIndent
tabSize
indentWithTabs
electricChars
specialChars
specialCharPlaceholder
rtlMoveVisually
keyMap
extraKeys
configureMouse
unit
extend
addNew
moveOnDrag
lineWrapping
lineNumbers
firstLineNumber
lineNumberFormatter
gutters
fixedGutter
scrollbarStyle
coverGutterNextToScrollbar
inputStyle
readOnly
showCursorWhenSelecting
lineWiseCopyCut
pasteLinesPerSelection
undoDepth
historyEventDelay
tabindex
autofocus
dragDrop
allowDropFileTypes
cursorBlinkRate
cursorScrollMargin
cursorHeight
resetSelectionOnContextMenu
workTime
workDelay
pollInterval
flattenSpans
addModeClass
maxHighlightLength
viewportMargin
Event
"""change"""
"""changes"""
"""beforeChange"""
"""cursorActivity"""
"""keyHandled"""
"""inputRead"""
"""electricInput"""
"""beforeSelectionChange"""
"""viewportChange"""
"""swapDoc"""
"""gutterClick"""
"""gutterContextMenu"""
"""focus"""
"""blur"""
"""scroll"""
"""refresh"""
"""optionChange"""
"""scrollCursorIntoView"""
"""update"""
"""renderLine"""
"""mousedown"""
"""dblclick"""
"""touchstart"""
"""contextmenu"""
"""keydown"""
"""keypress"""
"""keyup"""
"""cut"""
"""copy"""
"""paste"""
"""dragstart"""
"""dragenter"""
"""dragover"""
"""dragleave"""
"""drop"""
"""change"""
"""beforeChange"""
"""cursorActivity"""
"""beforeSelectionChange"""
"""delete"""
"""change"""
"""beforeCursorEnter"""
"""clear"""
"""hide"""
"""unhide"""
"""redraw"""
Command
selectAll
singleSelection
killLine
deleteLine
delLineLeft
delWrappedLineLeft
delWrappedLineRight
undo
redo
undoSelection
redoSelection
goDocStart
goDocEnd
goLineStart
goLineStartSmart
goLineEnd
goLineRight
goLineLeft
goLineLeftSmart
goLineUp
goLineDown
goPageUp
goPageDown
goCharLeft
goCharRight
goColumnLeft
goColumnRight
goWordLeft
goWordRight
goGroupLeft
goGroupRight
delCharBefore
delCharAfter
delWordBefore
delWordAfter
delGroupBefore
delGroupAfter
indentAuto
indentMore
indentLess
insertTab
insertSoftTab
defaultTab
transposeChars
newlineAndIndent
toggleOverwrite
save
find
findNext
findPrev
replace
replaceAll
Style
CodeMirror
CodeMirror-focused
CodeMirror-gutters
CodeMirror-linenumbers
CodeMirror-linenumber
CodeMirror-lines
CodeMirror-cursor
CodeMirror-selected
CodeMirror-matchingbracket
CodeMirror-nonmatchingbracket
Method
doc.getValue
doc.setValue
doc.getRange
doc.replaceRange
doc.getLine
doc.lineCount
doc.firstLine
doc.lastLine
doc.getLineHandle
doc.getLineNumber
doc.eachLine
doc.eachLine
doc.markClean
doc.changeGeneration
doc.isClean
doc.getSelection
doc.getSelections
doc.replaceSelection
doc.replaceSelections
doc.getCursor
doc.listSelections
doc.somethingSelected
doc.setCursor
doc.setSelection
scroll
origin
bias
doc.setSelections
doc.addSelection
doc.extendSelection
doc.extendSelections
doc.extendSelectionsBy
doc.setExtending
doc.getExtending
cm.hasFocus
cm.findPosH
cm.findPosV
cm.findWordAt
cm.setOption
cm.getOption
cm.addKeyMap
cm.removeKeyMap
cm.addOverlay
opaque
priority
cm.removeOverlay
cm.on
cm.off
cm.getDoc
doc.getEditor
cm.swapDoc
doc.copy
doc.linkedDoc
sharedHist
from
to
mode
doc.unlinkDoc
doc.iterLinkedDocs
doc.undo
doc.redo
doc.undoSelection
doc.redoSelection
doc.historySize
doc.clearHistory
doc.getHistory
doc.setHistory
doc.markText
className
inclusiveLeft
inclusiveRight
atomic
collapsed
clearOnEnter
clearWhenEmpty
replacedWith
handleMouseEvents
readOnly
addToHistory
startStyle
endStyle
css
title
shared
doc.setBookmark
widget
insertLeft
shared
handleMouseEvents
doc.findMarks
doc.findMarksAt
doc.getAllMarks
doc.setGutterMarker
doc.clearGutter
doc.addLineClass
doc.removeLineClass
doc.lineInfo
cm.addWidget
doc.addLineWidget
coverGutter
noHScroll
above
handleMouseEvents
insertAt
clear
changed
cm.setSize
cm.scrollTo
cm.getScrollInfo
cm.scrollIntoView
cm.cursorCoords
cm.charCoords
cm.coordsChar
cm.lineAtHeight
cm.heightAtLine
cm.defaultTextHeight
cm.defaultCharWidth
cm.getViewport
cm.refresh
doc.getMode
cm.getModeAt
cm.getTokenAt
start
end
string
type
state
cm.getLineTokens
cm.getTokenTypeAt
cm.getHelpers
cm.getHelper
cm.getStateAfter
cm.operation
cm.startOperation
cm.endOperation
cm.indentLine
"""prev"""
"""smart"""
"""add"""
"""subtract"""
<integer>
cm.toggleOverwrite
cm.isReadOnly
doc.lineSeparator
cm.execCommand
doc.posFromIndex
doc.indexFromPos
cm.focus
cm.getInputField
cm.getWrapperElement
cm.getScrollerElement
cm.getGutterElement
CodeMirror.version
CodeMirror.fromTextArea
cm.save
cm.toTextArea
cm.getTextArea
CodeMirror.defaults
CodeMirror.defineExtension
CodeMirror.defineDocExtension
CodeMirror.defineOption
CodeMirror.defineInitHook
CodeMirror.registerHelper
CodeMirror.registerGlobalHelper
CodeMirror.Pos
CodeMirror.changeEnd