Skip to content

Commit ed12f0d

Browse files
committed
doc: 代码格式化
1 parent 44d03d9 commit ed12f0d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/components/BootstrapBlazor.CodeEditor/Components/CodeEditor/CodeEditor.razor.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,21 @@ export async function init(id, interop, options) {
7777
}
7878

7979
export function insertText(id, insertData) {
80-
8180
const wrapper = Data.get(id);
8281
if (!wrapper) return;
8382

8483
const editor = wrapper.editor;
85-
8684
const selection = editor.getSelection();
87-
8885
editor.executeEdits('insert-custom-text', [
8986
{
9087
range: selection,
9188
text: insertData,
9289
forceMoveMarkers: true
9390
}
9491
]);
95-
9692
editor.focus();
9793
}
9894

99-
100-
101-
// Update the editor options
10295
export function monacoSetOptions(id, options) {
10396
var editor = Data.get(id);
10497
if (editor) {

0 commit comments

Comments
 (0)