Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@toast-ui/editor

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toast-ui/editor - npm Package Compare versions

Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1

dist/esm/indexViewer.js

2

dist/i18n/ar.js
/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.0
* @version 3.0.0-alpha.1
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

{
"name": "@toast-ui/editor",
"version": "3.0.0-alpha.0",
"version": "3.0.0-alpha.1",
"description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",

@@ -17,3 +17,12 @@ "keywords": [

"main": "dist/toastui-editor.js",
"module": "dist/esm/index.js",
"module": "dist/esm/",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/toastui-editor.js"
},
"./viewer": {
"import": "./dist/esm/indexViewer.js"
}
},
"types": "types/index.d.ts",

@@ -23,2 +32,3 @@ "files": [

"dist/*.css",
"dist/theme",
"dist/esm",

@@ -49,3 +59,3 @@ "dist/i18n",

"build": "npm run build:esm && npm run build:i18n && npm run build:prod",
"build:esm": "snowpack build --config=./snowpack.build.config.js && rm ./dist/esm/manifest.json",
"build:esm": "rollup -c",
"note": "tui-note --tag=$(git describe --tags)",

@@ -57,14 +67,15 @@ "doc:serve": "tuidoc --serv",

"@toast-ui/release-notes": "^2.0.1",
"cross-env": "^6.0.3"
"cross-env": "^6.0.3",
"rollup": "2.52.0",
"@rollup/plugin-typescript": "8.2.1"
},
"dependencies": {
"htm": "^3.0.4",
"prosemirror-commands": "^1.1.4",
"prosemirror-commands": "^1.1.9",
"prosemirror-history": "^1.1.3",
"prosemirror-inputrules": "^1.1.3",
"prosemirror-keymap": "^1.1.4",
"prosemirror-model": "^1.11.0",
"prosemirror-state": "^1.3.3",
"prosemirror-view": "^1.15.6"
"prosemirror-model": "^1.14.1",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.18.7"
}
}

@@ -30,7 +30,7 @@ # ![TOAST UI Editor](https://uicdn.toast.com/toastui/img/tui-editor-bi.png)

- [Getting Started](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/getting-started.md)
- [Getting Started](https://github.com/nhn/tui.editor/blob/main/docs/en/getting-started.md)
- [APIs](https://nhn.github.io/tui.editor/latest/)
- v2.0 Migration Guide
- [English](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/v2.0-migration-guide.md)
- [한국어](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/v2.0-migration-guide-ko.md)
- v3.0 Migration Guide
- [English](https://github.com/nhn/tui.editor/blob/main/docs/v3.0-migration-guide.md)
- [한국어](https://github.com/nhn/tui.editor/blob/main/docs/v3.0-migration-guide-ko.md)

@@ -86,3 +86,8 @@ You can also see the older versions of API page on the [releases page](https://github.com/nhn/tui.editor/releases).

│ │ ├─ toastui-editor-only.css
│ │ └─ toastui-editor-only.min.css
│ │ ├─ toastui-editor-only.min.css
│ │ └─ theme/
│ │ ├─ toastui-editor-dark.css
│ │ └─ toastui-editor-dark.min.css
│ │ └─ i18n/
│ │ └─ ...
│ ├─ 2.0.0/

@@ -92,6 +97,2 @@ │ │ └─ ...

### Download Source Files
- [Download all sources for each version](https://github.com/nhn/tui.editor/releases)
## 🔨 Usage

@@ -131,3 +132,3 @@

Then, you need to add the CSS files needed for the Editor. Import CSS files in node environment, and add it to html file when using CDN. When using the markdown editor, you need to add a style for the [CodeMirror](https://codemirror.net/).
Then, you need to add the CSS files needed for the Editor. Import CSS files in node environment, and add it to html file when using CDN.

@@ -137,3 +138,2 @@ ### Using in Node Environment

```javascript
import 'codemirror/lib/codemirror.css'; // Editor's Dependency Style
import '@toast-ui/editor/dist/toastui-editor.css'; // Editor's Style

@@ -148,7 +148,2 @@ ```

...
<!-- Editor's Dependecy Style -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/codemirror.min.css"
/>
<!-- Editor's Style -->

@@ -170,3 +165,3 @@ <link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" />

editor.getHtml();
editor.getMarkdown();
```

@@ -186,4 +181,4 @@

- [Viewer](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/viewer.md)
- [Plugins](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/plugins.md)
- [Internationalization (i18n)](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/i18n.md)
- [Viewer](https://github.com/nhn/tui.editor/blob/main/apps/editor/docs/viewer.md)
- [Plugins](https://github.com/nhn/tui.editor/blob/main/apps/editor/docs/plugins.md)
- [Internationalization (i18n)](https://github.com/nhn/tui.editor/blob/main/apps/editor/docs/i18n.md)
import { NodeType, MarkType, Schema, Node as ProsemirrorNode, Mark } from 'prosemirror-model';
import { MdNode, MdNodeType, RendererOptions, HTMLToken } from '@toast-ui/toastmark';
import { MdNode, MdNodeType, RendererOptions, HTMLToken, MdPos } from '@toast-ui/toastmark';
import { WwNodeType, WwMarkType } from './wysiwyg';

@@ -23,3 +23,3 @@

closeNode(): ProsemirrorNode | null;
convertNode(mdNode: MdNode): ProsemirrorNode | null;
convertNode(mdNode: MdNode, focusedNodeInfo: FocusedNodeInfo): ProsemirrorNode | null;
convertByDOMParser(root: HTMLElement): void;

@@ -55,7 +55,12 @@ }

text(text: string, escaped?: boolean): void;
convertBlock(node: ProsemirrorNode, parent: ProsemirrorNode, index: number): void;
convertBlock(
node: ProsemirrorNode,
parent: ProsemirrorNode,
index: number,
focusedNodeInfo?: FocusedNodeInfo
): void;
convertInline(parent: ProsemirrorNode): void;
convertList(node: ProsemirrorNode, delim: string, firstDelimFn: FirstDelimFn): void;
convertTableCell(node: ProsemirrorNode): void;
convertNode(parent: ProsemirrorNode): string;
convertNode(parent: ProsemirrorNode, focusedNodeInfo?: FocusedNodeInfo): string;
}

@@ -138,1 +143,6 @@

}
export interface InfoForPosSync {
node: MdNode | ProsemirrorNode | null;
setMappedPos: (pos: MdPos | number) => void;
}

@@ -68,2 +68,3 @@ import { Schema, NodeSpec, Fragment } from 'prosemirror-model';

usageStatistics?: boolean;
theme?: string;
}

@@ -154,2 +155,4 @@

public eventEmitter: Emitter;
public static factory(options: EditorOptions): EditorCore | Viewer;

@@ -191,3 +194,3 @@

setSelection(start: EditorPos, end: EditorPos): void;
setSelection(start: EditorPos, end?: EditorPos): void;

@@ -311,3 +314,3 @@ replaceSelection(text: string, start?: EditorPos, end?: EditorPos): void;

setSelection(start: EditorPos, end: EditorPos): void;
setSelection(start: EditorPos, end?: EditorPos): void;

@@ -314,0 +317,0 @@ replaceWithWidget(start: EditorPos, end: EditorPos, text: string): void;

@@ -38,2 +38,3 @@ import { Mapable } from './map';

| 'mixinTableOffsetMapPrototype'
| 'setFocusedNode'
// provide event for user

@@ -40,0 +41,0 @@ | 'openPopup'

@@ -1,2 +0,2 @@

// Type definitions for TOAST UI Editor v3.0.0-alpha.0
// Type definitions for TOAST UI Editor v3.0.0-alpha.1
// TypeScript Version: 4.2.3

@@ -3,0 +3,0 @@ import {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc