@editora/core 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/CodePlugin.native-CK9d8rmt.mjs +2022 -0
- package/dist/CodePlugin.native-CK9d8rmt.mjs.map +1 -0
- package/dist/webcomponent-core.js +1 -1
- package/dist/webcomponent-core.min.js +43 -58
- package/dist/webcomponent-core.min.js.map +1 -1
- package/dist/webcomponent.js +1 -1
- package/dist/webcomponent.min.js +167 -182
- package/dist/webcomponent.min.js.map +1 -1
- package/package.json +6 -6
- package/LICENSE +0 -21
- package/dist/CodePlugin.native-DD9xFIid.mjs +0 -1679
- package/dist/CodePlugin.native-DD9xFIid.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Framework-agnostic core editor engine for Editora Rich Text Editor.
|
|
|
14
14
|
## 📦 Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install @editora/core
|
|
17
|
+
npm install @editora/core @editora/plugins @editora/themes @editora/react
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## 🎯 Overview
|
|
@@ -37,6 +37,7 @@ The core package provides the fundamental editor engine that can be integrated w
|
|
|
37
37
|
```typescript
|
|
38
38
|
import { createEditor, EditorConfig } from '@editora/core';
|
|
39
39
|
|
|
40
|
+
import "@editora/themes/themes/default.css";
|
|
40
41
|
// Create editor configuration
|
|
41
42
|
const config: EditorConfig = {
|
|
42
43
|
content: '<p>Hello World!</p>',
|
|
@@ -60,11 +61,13 @@ editor.mount(container);
|
|
|
60
61
|
import { createEditor } from '@editora/core';
|
|
61
62
|
import { BoldPlugin, ItalicPlugin, HeadingPlugin } from '@editora/plugins';
|
|
62
63
|
|
|
64
|
+
import "@editora/themes/themes/default.css";
|
|
65
|
+
|
|
63
66
|
const editor = createEditor({
|
|
64
67
|
plugins: [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
BoldPlugin(),
|
|
69
|
+
ItalicPlugin(),
|
|
70
|
+
HeadingPlugin()
|
|
68
71
|
],
|
|
69
72
|
content: '<h1>Welcome</h1><p>Start writing...</p>'
|
|
70
73
|
});
|
|
@@ -210,6 +213,7 @@ Create custom plugins by extending the base Plugin class:
|
|
|
210
213
|
```typescript
|
|
211
214
|
import { Plugin, Editor } from '@editora/core';
|
|
212
215
|
|
|
216
|
+
import "@editora/themes/themes/default.css";
|
|
213
217
|
class CustomPlugin extends Plugin {
|
|
214
218
|
name = 'custom';
|
|
215
219
|
|