mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
createDecorationsCollection
This commit is contained in:
parent
4a80f8e852
commit
01a48285c1
3 changed files with 3 additions and 6 deletions
|
|
@ -15,8 +15,7 @@ var editor = monaco.editor.create(document.getElementById("container"), {
|
|||
language: "javascript",
|
||||
});
|
||||
|
||||
var decorations = editor.deltaDecorations(
|
||||
[],
|
||||
var decorations = editor.createDecorationsCollection(
|
||||
[
|
||||
{
|
||||
range: new monaco.Range(3, 1, 5, 1),
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@ var editor = monaco.editor.create(document.getElementById("container"), {
|
|||
contextmenu: false,
|
||||
});
|
||||
|
||||
var decorations = editor.deltaDecorations(
|
||||
[],
|
||||
var decorations = editor.createDecorationsCollection(
|
||||
[
|
||||
{
|
||||
range: new monaco.Range(3, 1, 3, 1),
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ var editor = monaco.editor.create(document.getElementById("container"), {
|
|||
glyphMargin: true,
|
||||
});
|
||||
|
||||
var decorations = editor.deltaDecorations(
|
||||
[],
|
||||
var decorations = editor.createDecorationsCollection(
|
||||
[
|
||||
{
|
||||
range: new monaco.Range(3, 1, 3, 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue