Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
12738e3e
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
12738e3e
编写于
5月 18, 2017
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clarify editor API
上级
98465c0c
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
99 addition
and
65 deletion
+99
-65
src/vs/editor/common/commonCodeEditor.ts
src/vs/editor/common/commonCodeEditor.ts
+8
-9
src/vs/editor/common/controller/cursor.ts
src/vs/editor/common/controller/cursor.ts
+29
-54
src/vs/editor/common/controller/cursorCommon.ts
src/vs/editor/common/controller/cursorCommon.ts
+7
-2
src/vs/editor/common/editorCommon.ts
src/vs/editor/common/editorCommon.ts
+2
-0
src/vs/editor/common/model/textModelEvents.ts
src/vs/editor/common/model/textModelEvents.ts
+10
-0
src/vs/editor/contrib/caretOperations/common/caretOperations.ts
.../editor/contrib/caretOperations/common/caretOperations.ts
+2
-0
src/vs/editor/contrib/caretOperations/common/transpose.ts
src/vs/editor/contrib/caretOperations/common/transpose.ts
+2
-0
src/vs/editor/contrib/comment/common/comment.ts
src/vs/editor/contrib/comment/common/comment.ts
+4
-0
src/vs/editor/contrib/dnd/browser/dnd.ts
src/vs/editor/contrib/dnd/browser/dnd.ts
+2
-0
src/vs/editor/contrib/find/common/findModel.ts
src/vs/editor/contrib/find/common/findModel.ts
+2
-0
src/vs/editor/contrib/format/common/formatCommand.ts
src/vs/editor/contrib/format/common/formatCommand.ts
+2
-0
src/vs/editor/contrib/inPlaceReplace/common/inPlaceReplace.ts
...vs/editor/contrib/inPlaceReplace/common/inPlaceReplace.ts
+3
-0
src/vs/editor/contrib/indentation/common/indentation.ts
src/vs/editor/contrib/indentation/common/indentation.ts
+8
-0
src/vs/editor/contrib/linesOperations/common/linesOperations.ts
.../editor/contrib/linesOperations/common/linesOperations.ts
+14
-0
src/vs/editor/contrib/wordOperations/common/wordOperations.ts
...vs/editor/contrib/wordOperations/common/wordOperations.ts
+2
-0
src/vs/monaco.d.ts
src/vs/monaco.d.ts
+2
-0
未找到文件。
src/vs/editor/common/commonCodeEditor.ts
浏览文件 @
12738e3e
...
...
@@ -698,16 +698,8 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
return
this
.
cursor
;
}
public
executeCommand
(
source
:
string
,
command
:
editorCommon
.
ICommand
):
void
{
if
(
!
this
.
cursor
)
{
return
;
}
this
.
cursor
.
trigger
(
source
,
editorCommon
.
Handler
.
ExecuteCommand
,
command
);
}
public
pushUndoStop
():
boolean
{
if
(
!
this
.
cursor
)
{
// no view, no cursor
if
(
!
this
.
model
)
{
return
false
;
}
if
(
this
.
_configuration
.
editor
.
readOnly
)
{
...
...
@@ -739,6 +731,13 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
return
true
;
}
public
executeCommand
(
source
:
string
,
command
:
editorCommon
.
ICommand
):
void
{
if
(
!
this
.
cursor
)
{
return
;
}
this
.
cursor
.
trigger
(
source
,
editorCommon
.
Handler
.
ExecuteCommand
,
command
);
}
public
executeCommands
(
source
:
string
,
commands
:
editorCommon
.
ICommand
[]):
void
{
if
(
!
this
.
cursor
)
{
return
;
...
...
src/vs/editor/common/controller/cursor.ts
浏览文件 @
12738e3e
...
...
@@ -59,10 +59,9 @@ export class Cursor extends Disposable implements ICursors {
private
readonly
_configuration
:
editorCommon
.
IConfiguration
;
private
readonly
_model
:
editorCommon
.
IModel
;
private
readonly
_viewModelHelper
:
IViewModelHelper
;
public
context
:
CursorContext
;
private
_cursors
:
CursorCollection
;
private
_isHandling
:
boolean
;
private
_isDoingComposition
:
boolean
;
private
_columnSelectData
:
IColumnSelectData
;
...
...
@@ -77,31 +76,16 @@ export class Cursor extends Disposable implements ICursors {
this
.
_configuration
=
configuration
;
this
.
_model
=
model
;
this
.
_viewModelHelper
=
viewModelHelper
;
const
createCursorContext
=
()
=>
{
const
config
=
new
CursorConfiguration
(
this
.
_model
.
getLanguageIdentifier
(),
this
.
_model
.
getOneIndent
(),
this
.
_model
.
getOptions
(),
this
.
_configuration
);
this
.
context
=
new
CursorContext
(
this
.
_model
,
this
.
_viewModelHelper
,
config
);
if
(
this
.
_cursors
)
{
this
.
_cursors
.
updateContext
(
this
.
context
);
}
};
createCursorContext
();
this
.
context
=
new
CursorContext
(
this
.
_configuration
,
this
.
_model
,
this
.
_viewModelHelper
);
this
.
_cursors
=
new
CursorCollection
(
this
.
context
);
this
.
_isHandling
=
false
;
this
.
_isDoingComposition
=
false
;
this
.
_columnSelectData
=
null
;
this
.
_handlers
=
{};
this
.
_registerHandlers
();
this
.
_register
(
this
.
_model
.
addBulkListener
((
events
)
=>
{
if
(
this
.
_isHandling
)
{
return
;
...
...
@@ -115,14 +99,8 @@ export class Cursor extends Disposable implements ICursors {
if
(
eventType
===
TextModelEventType
.
ModelRawContentChanged2
)
{
hadContentChange
=
true
;
const
changeEvent
=
<
ModelRawContentChangedEvent
>
event
.
data
;
for
(
let
j
=
0
,
lenJ
=
changeEvent
.
changes
.
length
;
j
<
lenJ
;
j
++
)
{
const
change
=
changeEvent
.
changes
[
j
];
if
(
change
.
changeType
===
RawContentChangedType
.
Flush
)
{
hadFlushEvent
=
true
;
}
}
const
rawChangeEvent
=
<
ModelRawContentChangedEvent
>
event
.
data
;
hadFlushEvent
=
hadFlushEvent
||
rawChangeEvent
.
containsEvent
(
RawContentChangedType
.
Flush
);
}
}
...
...
@@ -133,29 +111,29 @@ export class Cursor extends Disposable implements ICursors {
this
.
_onModelContentChanged
(
hadFlushEvent
);
}));
const
updateCursorContext
=
()
=>
{
this
.
context
=
new
CursorContext
(
this
.
_configuration
,
this
.
_model
,
this
.
_viewModelHelper
);
this
.
_cursors
.
updateContext
(
this
.
context
);
};
this
.
_register
(
this
.
_model
.
onDidChangeLanguage
((
e
)
=>
{
cre
ateCursorContext
();
upd
ateCursorContext
();
}));
this
.
_register
(
LanguageConfigurationRegistry
.
onDidChange
(()
=>
{
// TODO@Alex: react only if certain supports changed? (and if my model's mode changed)
cre
ateCursorContext
();
upd
ateCursorContext
();
}));
this
.
_register
(
model
.
onDidChangeOptions
(()
=>
{
cre
ateCursorContext
();
upd
ateCursorContext
();
}));
this
.
_register
(
this
.
_configuration
.
onDidChange
((
e
)
=>
{
if
(
CursorConfiguration
.
shouldRecreate
(
e
))
{
cre
ateCursorContext
();
upd
ateCursorContext
();
}
}));
this
.
_handlers
=
{};
this
.
_registerHandlers
();
}
public
dispose
():
void
{
this
.
_cursors
.
dispose
();
this
.
_cursors
=
null
;
super
.
dispose
();
}
...
...
@@ -203,8 +181,8 @@ export class Cursor extends Disposable implements ICursors {
}
if
(
somethingChanged
)
{
this
.
emitCursorPositionChanged
(
source
,
reason
);
this
.
emitCursorSelectionChanged
(
source
,
reason
);
this
.
_
emitCursorPositionChanged
(
source
,
reason
);
this
.
_
emitCursorSelectionChanged
(
source
,
reason
);
}
}
...
...
@@ -295,16 +273,13 @@ export class Cursor extends Disposable implements ICursors {
if
(
hadFlushEvent
)
{
// a model.setValue() was called
this
.
_cursors
.
dispose
();
this
.
_cursors
=
new
CursorCollection
(
this
.
context
);
this
.
emitCursorPositionChanged
(
'
model
'
,
CursorChangeReason
.
ContentFlush
);
this
.
emitCursorSelectionChanged
(
'
model
'
,
CursorChangeReason
.
ContentFlush
);
this
.
_
emitCursorPositionChanged
(
'
model
'
,
CursorChangeReason
.
ContentFlush
);
this
.
_
emitCursorSelectionChanged
(
'
model
'
,
CursorChangeReason
.
ContentFlush
);
}
else
{
if
(
!
this
.
_isHandling
)
{
const
selectionsFromMarkers
=
this
.
_cursors
.
readSelectionFromMarkers
();
this
.
setStates
(
'
modelChange
'
,
CursorChangeReason
.
RecoverFromMarkers
,
CursorState
.
fromModelSelections
(
selectionsFromMarkers
));
}
const
selectionsFromMarkers
=
this
.
_cursors
.
readSelectionFromMarkers
();
this
.
setStates
(
'
modelChange
'
,
CursorChangeReason
.
RecoverFromMarkers
,
CursorState
.
fromModelSelections
(
selectionsFromMarkers
));
}
}
...
...
@@ -392,9 +367,9 @@ export class Cursor extends Disposable implements ICursors {
}
if
(
somethingChanged
)
{
this
.
emitCursorPositionChanged
(
args
.
eventSource
,
cursorPositionChangeReason
);
this
.
_
emitCursorPositionChanged
(
args
.
eventSource
,
cursorPositionChangeReason
);
this
.
_revealRange
(
RevealTarget
.
Primary
,
VerticalRevealType
.
Simple
,
true
);
this
.
emitCursorSelectionChanged
(
args
.
eventSource
,
cursorPositionChangeReason
);
this
.
_
emitCursorSelectionChanged
(
args
.
eventSource
,
cursorPositionChangeReason
);
}
}
catch
(
err
)
{
...
...
@@ -415,7 +390,7 @@ export class Cursor extends Disposable implements ICursors {
// -----------------------------------------------------------------------------------------------------------
// ----- emitting events
private
emitCursorPositionChanged
(
source
:
string
,
reason
:
CursorChangeReason
):
void
{
private
_
emitCursorPositionChanged
(
source
:
string
,
reason
:
CursorChangeReason
):
void
{
const
positions
=
this
.
_cursors
.
getPositions
();
const
primaryPosition
=
positions
[
0
];
const
secondaryPositions
=
positions
.
slice
(
1
);
...
...
@@ -443,7 +418,7 @@ export class Cursor extends Disposable implements ICursors {
this
.
_eventEmitter
.
emit
(
CursorEventType
.
CursorPositionChanged
,
e
);
}
private
emitCursorSelectionChanged
(
source
:
string
,
reason
:
CursorChangeReason
):
void
{
private
_
emitCursorSelectionChanged
(
source
:
string
,
reason
:
CursorChangeReason
):
void
{
const
selections
=
this
.
_cursors
.
getSelections
();
const
primarySelection
=
selections
[
0
];
const
secondarySelections
=
selections
.
slice
(
1
);
...
...
@@ -729,8 +704,8 @@ export class Cursor extends Disposable implements ICursors {
this
.
_cursors
.
killSecondaryCursors
();
return
new
EditOperationResult
([
command
],
{
shouldPushStackElementBefore
:
tru
e
,
shouldPushStackElementAfter
:
tru
e
shouldPushStackElementBefore
:
fals
e
,
shouldPushStackElementAfter
:
fals
e
});
}
...
...
@@ -738,8 +713,8 @@ export class Cursor extends Disposable implements ICursors {
const
commands
=
args
.
eventData
;
return
new
EditOperationResult
(
commands
,
{
shouldPushStackElementBefore
:
tru
e
,
shouldPushStackElementAfter
:
tru
e
shouldPushStackElementBefore
:
fals
e
,
shouldPushStackElementAfter
:
fals
e
});
}
}
...
...
src/vs/editor/common/controller/cursorCommon.ts
浏览文件 @
12738e3e
...
...
@@ -284,10 +284,15 @@ export class CursorContext {
private
readonly
_viewModelHelper
:
IViewModelHelper
;
private
readonly
_coordinatesConverter
:
ICoordinatesConverter
;
constructor
(
model
:
IModel
,
viewModelHelper
:
IViewModelHelper
,
config
:
CursorConfiguration
)
{
constructor
(
configuration
:
IConfiguration
,
model
:
IModel
,
viewModelHelper
:
IViewModelHelper
)
{
this
.
model
=
model
;
this
.
viewModel
=
viewModelHelper
.
viewModel
;
this
.
config
=
config
;
this
.
config
=
new
CursorConfiguration
(
this
.
model
.
getLanguageIdentifier
(),
this
.
model
.
getOneIndent
(),
this
.
model
.
getOptions
(),
configuration
);;
this
.
_viewModelHelper
=
viewModelHelper
;
this
.
_coordinatesConverter
=
viewModelHelper
.
coordinatesConverter
;
}
...
...
src/vs/editor/common/editorCommon.ts
浏览文件 @
12738e3e
...
...
@@ -1886,6 +1886,7 @@ export interface ICommonCodeEditor extends IEditor {
/**
* Execute a command on the editor.
* The edits will land on the undo-redo stack, but no "undo stop" will be pushed.
* @param source The source of the call.
* @param command The command to execute
*/
...
...
@@ -1898,6 +1899,7 @@ export interface ICommonCodeEditor extends IEditor {
/**
* Execute edits on the editor.
* The edits will land on the undo-redo stack, but no "undo stop" will be pushed.
* @param source The source of the call.
* @param edits The edits to execute.
* @param endCursoState Cursor state after the edits were applied.
...
...
src/vs/editor/common/model/textModelEvents.ts
浏览文件 @
12738e3e
...
...
@@ -243,4 +243,14 @@ export class ModelRawContentChangedEvent {
this
.
isUndoing
=
isUndoing
;
this
.
isRedoing
=
isRedoing
;
}
public
containsEvent
(
type
:
RawContentChangedType
):
boolean
{
for
(
let
i
=
0
,
len
=
this
.
changes
.
length
;
i
<
len
;
i
++
)
{
const
change
=
this
.
changes
[
i
];
if
(
change
.
changeType
===
type
)
{
return
true
;
}
}
return
false
;
}
}
src/vs/editor/contrib/caretOperations/common/caretOperations.ts
浏览文件 @
12738e3e
...
...
@@ -29,7 +29,9 @@ class MoveCaretAction extends EditorAction {
commands
.
push
(
new
MoveCaretCommand
(
selections
[
i
],
this
.
left
));
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
...
...
src/vs/editor/contrib/caretOperations/common/transpose.ts
浏览文件 @
12738e3e
...
...
@@ -63,7 +63,9 @@ class TransposeLettersAction extends EditorAction {
}
if
(
commands
.
length
>
0
)
{
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
}
src/vs/editor/contrib/comment/common/comment.ts
浏览文件 @
12738e3e
...
...
@@ -35,7 +35,9 @@ abstract class CommentLineAction extends EditorAction {
commands
.
push
(
new
LineCommentCommand
(
selections
[
i
],
opts
.
tabSize
,
this
.
_type
));
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
...
...
@@ -113,6 +115,8 @@ class BlockCommentAction extends EditorAction {
commands
.
push
(
new
BlockCommentCommand
(
selections
[
i
]));
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
src/vs/editor/contrib/dnd/browser/dnd.ts
浏览文件 @
12738e3e
...
...
@@ -146,7 +146,9 @@ export class DragAndDropController implements editorCommon.IEditorContribution {
this
.
_dragSelection
.
getEndPosition
().
equals
(
newCursorPosition
)
||
this
.
_dragSelection
.
getStartPosition
().
equals
(
newCursorPosition
)
)
// we allow users to paste content beside the selection
))
{
this
.
_editor
.
pushUndoStop
();
this
.
_editor
.
executeCommand
(
DragAndDropController
.
ID
,
new
DragAndDropCommand
(
this
.
_dragSelection
,
newCursorPosition
,
mouseEvent
.
event
[
DragAndDropController
.
TRIGGER_MODIFIER
]
||
this
.
_modiferPressed
));
this
.
_editor
.
pushUndoStop
();
}
}
...
...
src/vs/editor/contrib/find/common/findModel.ts
浏览文件 @
12738e3e
...
...
@@ -468,7 +468,9 @@ export class FindModelBoundToEditorModel {
private
_executeEditorCommand
(
source
:
string
,
command
:
editorCommon
.
ICommand
):
void
{
try
{
this
.
_ignoreModelContentChanged
=
true
;
this
.
_editor
.
pushUndoStop
();
this
.
_editor
.
executeCommand
(
source
,
command
);
this
.
_editor
.
pushUndoStop
();
}
finally
{
this
.
_ignoreModelContentChanged
=
false
;
}
...
...
src/vs/editor/contrib/format/common/formatCommand.ts
浏览文件 @
12738e3e
...
...
@@ -17,7 +17,9 @@ export class EditOperationsCommand implements editorCommon.ICommand {
if
(
typeof
cmd
.
_newEol
===
'
number
'
)
{
editor
.
getModel
().
setEOL
(
cmd
.
_newEol
);
}
editor
.
pushUndoStop
();
editor
.
executeCommand
(
'
formatEditsCommand
'
,
cmd
);
editor
.
pushUndoStop
();
}
private
_edits
:
TextEdit
[];
...
...
src/vs/editor/contrib/inPlaceReplace/common/inPlaceReplace.ts
浏览文件 @
12738e3e
...
...
@@ -112,7 +112,10 @@ class InPlaceReplaceController implements IEditorContribution {
// Insert new text
var
command
=
new
InPlaceReplaceCommand
(
editRange
,
selection
,
result
.
value
);
this
.
editor
.
pushUndoStop
();
this
.
editor
.
executeCommand
(
source
,
command
);
this
.
editor
.
pushUndoStop
();
// add decoration
this
.
decorationIds
=
this
.
editor
.
deltaDecorations
(
this
.
decorationIds
,
[{
...
...
src/vs/editor/contrib/indentation/common/indentation.ts
浏览文件 @
12738e3e
...
...
@@ -164,7 +164,11 @@ export class IndentationToSpacesAction extends EditorAction {
}
let
modelOpts
=
model
.
getOptions
();
const
command
=
new
IndentationToSpacesCommand
(
editor
.
getSelection
(),
modelOpts
.
tabSize
);
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
[
command
]);
editor
.
pushUndoStop
();
model
.
updateOptions
({
insertSpaces
:
true
});
...
...
@@ -191,7 +195,11 @@ export class IndentationToTabsAction extends EditorAction {
}
let
modelOpts
=
model
.
getOptions
();
const
command
=
new
IndentationToTabsCommand
(
editor
.
getSelection
(),
modelOpts
.
tabSize
);
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
[
command
]);
editor
.
pushUndoStop
();
model
.
updateOptions
({
insertSpaces
:
false
});
...
...
src/vs/editor/contrib/linesOperations/common/linesOperations.ts
浏览文件 @
12738e3e
...
...
@@ -39,7 +39,9 @@ abstract class AbstractCopyLinesAction extends EditorAction {
commands
.
push
(
new
CopyLinesCommand
(
selections
[
i
],
this
.
down
));
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
...
...
@@ -97,7 +99,9 @@ abstract class AbstractMoveLinesAction extends EditorAction {
commands
.
push
(
new
MoveLinesCommand
(
selections
[
i
],
this
.
down
));
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
...
...
@@ -151,7 +155,9 @@ abstract class AbstractSortLinesAction extends EditorAction {
var
command
=
new
SortLinesCommand
(
editor
.
getSelection
(),
this
.
descending
);
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
[
command
]);
editor
.
pushUndoStop
();
}
}
...
...
@@ -201,7 +207,9 @@ export class TrimTrailingWhitespaceAction extends EditorAction {
var
command
=
new
TrimTrailingWhitespaceCommand
(
editor
.
getSelection
());
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
[
command
]);
editor
.
pushUndoStop
();
}
}
...
...
@@ -280,7 +288,9 @@ class DeleteLinesAction extends AbstractRemoveLinesAction {
return
new
DeleteLinesCommand
(
op
.
startLineNumber
,
op
.
endLineNumber
,
op
.
positionColumn
);
});
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
...
...
@@ -694,7 +704,9 @@ export class TransposeAction extends EditorAction {
}
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
}
...
...
@@ -725,7 +737,9 @@ export abstract class AbstractCaseAction extends EditorAction {
}
}
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
protected
abstract
_modifyText
(
text
:
string
):
string
;
...
...
src/vs/editor/contrib/wordOperations/common/wordOperations.ts
浏览文件 @
12738e3e
...
...
@@ -275,7 +275,9 @@ export abstract class DeleteWordCommand extends EditorCommand {
return
new
ReplaceCommand
(
deleteRange
,
''
);
});
editor
.
pushUndoStop
();
editor
.
executeCommands
(
this
.
id
,
commands
);
editor
.
pushUndoStop
();
}
protected
abstract
_delete
(
wordSeparators
:
WordCharacterClassifier
,
model
:
IModel
,
selection
:
Selection
,
whitespaceHeuristics
:
boolean
,
wordNavigationType
:
WordNavigationType
):
Range
;
...
...
src/vs/monaco.d.ts
浏览文件 @
12738e3e
...
...
@@ -2294,6 +2294,7 @@ declare module monaco.editor {
getAction
(
id
:
string
):
IEditorAction
;
/**
* Execute a command on the editor.
* The edits will land on the undo-redo stack, but no "undo stop" will be pushed.
* @param source The source of the call.
* @param command The command to execute
*/
...
...
@@ -2304,6 +2305,7 @@ declare module monaco.editor {
pushUndoStop
():
boolean
;
/**
* Execute edits on the editor.
* The edits will land on the undo-redo stack, but no "undo stop" will be pushed.
* @param source The source of the call.
* @param edits The edits to execute.
* @param endCursoState Cursor state after the edits were applied.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录