Class orion.editor.EditOptions
This object describes the options for edit
.
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
the editor contents.
|
|
the type of the content (eg.
|
|
whether or not the tab key inserts white spaces.
|
|
the line index displayed for the first line of text.
|
|
whether or not the view is in full selection mode.
|
|
whether or not to focus the editor on creation.
|
|
the parent element for the view, it can be either a DOM element or an ID for a DOM element.
|
|
whether or not the view is read-only.
|
|
whether or not the annotation ruler is shown.
|
|
whether or not the folding ruler is shown.
|
|
whether or not the lines ruler is shown.
|
|
whether or not the overview ruler is shown.
|
|
whether or not the editor is in single line mode.
|
|
a status reporter.
|
|
whether or not the tab keypress is consumed by the view or is used for focus traversal.
|
|
The number of spaces in a tab.
|
|
the CSS class for the view theming.
|
|
the editor title.
|
|
whether or not the view is wrappable.
|
|
whether or not the view wraps lines.
|
Field Detail
{String}
contents
the editor contents.
- Default Value:
- ""
{String}
contentType
the type of the content (eg.- application/javascript, text/html, etc.)
{Boolean}
expandTab
whether or not the tab key inserts white spaces.
- Default Value:
- false
{Number}
firstLineIndex
the line index displayed for the first line of text.
- Default Value:
- 1
{Boolean}
fullSelection
whether or not the view is in full selection mode.
- Default Value:
- true
{String}
lang
- Deprecated:
- use contentType instead
{Boolean}
noFocus
whether or not to focus the editor on creation.
- Default Value:
- false
{String|DOMElement}
parent
the parent element for the view, it can be either a DOM element or an ID for a DOM element.
{Boolean}
readonly
whether or not the view is read-only.
- Default Value:
- false
{Boolean}
showAnnotationRuler
whether or not the annotation ruler is shown.
- Default Value:
- true
{Boolean}
showFoldingRuler
whether or not the folding ruler is shown.
- Default Value:
- true
{Boolean}
showLinesRuler
whether or not the lines ruler is shown.
- Default Value:
- true
{Boolean}
showOverviewRuler
whether or not the overview ruler is shown.
- Default Value:
- true
{Boolean}
singleMode
whether or not the editor is in single line mode.
- Default Value:
- false
{Function}
statusReporter
a status reporter.
{Boolean}
tabMode
whether or not the tab keypress is consumed by the view or is used for focus traversal.
- Default Value:
- true
{Number}
tabSize
The number of spaces in a tab.
- Default Value:
- 4
{String}
themeClass
the CSS class for the view theming.
{String}
title
the editor title.
- Default Value:
- ""
{Boolean}
wrapable
whether or not the view is wrappable.
- Default Value:
- false
{Boolean}
wrapMode
whether or not the view wraps lines.
- Default Value:
- false