@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 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
- new BoldPlugin(),
66
- new ItalicPlugin(),
67
- new HeadingPlugin()
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