@codemirror/view
TypeScript icon, indicating that this package has built-in type declarations

6.36.5 • Public • Published

@codemirror/view NPM version

[ WEBSITE | DOCS | ISSUES | FORUM | CHANGELOG ]

This package implements the DOM view component for the CodeMirror code editor.

The project page has more information, a number of examples and the documentation.

This code is released under an MIT license.

We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.

Usage

import {EditorView} from "@codemirror/view"
import {basicSetup} from "codemirror"

const view = new EditorView({
  parent: document.querySelector("#some-node"),
  doc: "Content text",
  extensions: [basicSetup /* ... */]
})

Add additional extensions, such as a language mode, to configure the editor. Call view.dispatch to update the editor's state.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
6.36.5419,617latest
6.26.4-edit-context.12edit-context

Version History

VersionDownloads (Last 7 Days)Published
6.36.5419,617
6.36.4310,137
6.36.370,825
6.36.2200,260
6.36.163,648
6.36.011,487
6.35.328,558
6.35.22,813
6.35.11,386
6.35.046,035
6.34.318,263
6.34.223,989
6.34.191,089
6.34.04,770
6.33.055,569
6.32.020,670
6.31.01,683
6.30.08,475
6.29.113,344
6.29.05,506
6.28.67,781
6.28.52,643
6.28.434,023
6.28.34,446
6.28.221,002
6.28.19,981
6.28.016,277
6.27.011,000
6.26.41,430
6.26.4-edit-context.12
6.26.4-edit-context3
6.26.3145,355
6.26.28,265
6.26.114,339
6.26.020,872
6.25.116,149
6.25.02,895
6.24.110,886
6.24.06,883
6.23.112,308
6.23.020,872
6.22.371,444
6.22.22,046
6.22.110,282
6.22.08,053
6.21.44,474
6.21.37,082
6.21.22,117
6.21.1524
6.21.0194
6.20.22,092
6.20.1342
6.20.0426
6.19.06,115
6.18.1761
6.18.03,423
6.17.11,558
6.17.01,907
6.16.06,482
6.15.33,270
6.15.216
6.15.15
6.15.0937
6.14.13,795
6.14.01,880
6.13.24,765
6.13.1600
6.13.01,518
6.12.03,087
6.11.3157
6.11.22,362
6.11.1323
6.11.0516
6.10.1226
6.10.0417
6.9.63,164
6.9.5990
6.9.42,725
6.9.34,222
6.9.240,602
6.9.114,461
6.9.0125
6.8.11,876
6.8.024
6.7.32,997
6.7.21,914
6.7.112,967
6.7.0357
6.6.0531
6.5.11,497
6.5.012
6.4.2348
6.4.12,190
6.4.03,777
6.3.1853
6.3.01,228
6.2.5173
6.2.4495
6.2.31,638
6.2.2567
6.2.1890
6.2.01,473
6.1.4198
6.1.328
6.1.21,528
6.1.1105
6.1.01,260
6.0.31,035
6.0.21,760
6.0.1253
6.0.0432
0.20.724,242
0.20.651
0.20.562
0.20.483
0.20.311
0.20.2353
0.20.122
0.20.025
0.19.4861,367
0.19.47154
0.19.4634
0.19.45157
0.19.4430
0.19.43101
0.19.422,705
0.19.414
0.19.40309
0.19.3989
0.19.3826
0.19.37143
0.19.365
0.19.35121
0.19.347
0.19.336
0.19.3217
0.19.31768
0.19.304
0.19.29117
0.19.284
0.19.2724
0.19.265
0.19.2522
0.19.2410
0.19.2311
0.19.224
0.19.2112
0.19.2064
0.19.1912
0.19.184
0.19.174
0.19.165
0.19.1513
0.19.1415
0.19.1318
0.19.123
0.19.116
0.19.104
0.19.9240
0.19.85
0.19.76
0.19.65
0.19.53
0.19.4195
0.19.34
0.19.24
0.19.152
0.18.195,025
0.18.184
0.18.1749
0.18.1617
0.18.1522
0.18.143
0.18.1311
0.18.124
0.18.1110
0.18.103
0.18.912
0.18.82
0.18.73
0.18.63
0.18.53
0.18.43
0.18.317
0.18.23
0.18.12
0.18.02
0.17.13194
0.17.122
0.17.113
0.17.1013
0.17.94
0.17.81
0.17.71
0.17.62
0.17.51
0.17.42
0.17.31
0.17.22
0.17.12
0.17.02

Package Sidebar

Install

npm i @codemirror/view

Weekly Downloads

2,124,622

Version

6.36.5

License

MIT

Unpacked Size

1.16 MB

Total Files

9

Last publish

Collaborators

  • adrianheine
  • marijn