mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-13 14:49:02 +08:00
docs(README): Use new package name
This commit is contained in:
parent
6bdbf1d2d3
commit
328569e13c
16
README.md
16
README.md
@ -1,4 +1,4 @@
|
||||
# CKEditor 5 mathematical feature · [](https://github.com/isaul32/ckeditor5-math/blob/master/LICENSE) [](https://www.npmjs.com/package/ckeditor5-math)
|
||||
# CKEditor 5 mathematical feature · [](https://github.com/isaul32/ckeditor5-math/blob/master/LICENSE) [](https://www.npmjs.com/package/@isaul32/ckeditor5-math)
|
||||
|
||||
ckeditor5-math is a TeX-based mathematical plugin for CKEditor 5. You can use it to insert, edit, and view mathematical equations and formulas. This plugin supports [MathJax], [KaTeX] and custom typesetting engines.
|
||||
|
||||
@ -65,15 +65,15 @@ Use official classic or inline build as a base:
|
||||
|
||||
Install plugin with NPM or Yarn
|
||||
|
||||
`npm install ckeditor5-math --save-dev`
|
||||
`npm install @isaul32/ckeditor5-math --save-dev`
|
||||
|
||||
`yarn add ckeditor5-math --dev`
|
||||
`yarn add @isaul32/ckeditor5-math --dev`
|
||||
|
||||
Add import into ckeditor.js file
|
||||
|
||||
```js
|
||||
import Math from 'ckeditor5-math/src/math';
|
||||
import AutoformatMath from 'ckeditor5-math/src/autoformatmath';
|
||||
import Math from '@isaul32/ckeditor5-math/src/math';
|
||||
import AutoformatMath from '@isaul32/ckeditor5-math/src/autoformatmath';
|
||||
```
|
||||
|
||||
Add it to built-in plugins
|
||||
@ -108,7 +108,7 @@ InlineEditor.defaultConfig = {
|
||||
Use the [official DLL build](https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/alternative-setups/dll-builds.html) and additionally load the math plugin:
|
||||
|
||||
```html
|
||||
<script src="path/to/node_modules/isaul32/ckeditor5-math/build/math.js"></script>
|
||||
<script src="path/to/node_modules/@isaul32/ckeditor5-math/build/math.js"></script>
|
||||
<script>
|
||||
CKEditor5.editorClassic.ClassicEditor
|
||||
.create(editorElement, {
|
||||
@ -237,7 +237,7 @@ Add following lines into your build
|
||||
|
||||
```js
|
||||
// ...
|
||||
import AutoformatMath from 'ckeditor5-math/src/autoformatmath';
|
||||
import AutoformatMath from '@isaul32/ckeditor5-math/src/autoformatmath';
|
||||
|
||||
InlineEditor.builtinPlugins = [
|
||||
// ...
|
||||
@ -248,7 +248,7 @@ InlineEditor.builtinPlugins = [
|
||||
or use it with DLL build
|
||||
|
||||
```html
|
||||
<script src="path/to/node_modules/isaul32/ckeditor5-math/build/math.js"></script>
|
||||
<script src="path/to/node_modules/@isaul32/ckeditor5-math/build/math.js"></script>
|
||||
<script>
|
||||
CKEditor5.editorInline.InlineEditorEditor
|
||||
.create(editorElement, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user