@syncfusion/ej2-angular-richtexteditor 34.2.6 → 34.2.7-ngcc

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.
Files changed (32) hide show
  1. package/@syncfusion/ej2-angular-richtexteditor.es5.js +402 -0
  2. package/@syncfusion/ej2-angular-richtexteditor.es5.js.map +1 -0
  3. package/@syncfusion/ej2-angular-richtexteditor.js +383 -0
  4. package/@syncfusion/ej2-angular-richtexteditor.js.map +1 -0
  5. package/LICENSE +10 -0
  6. package/README.md +62 -124
  7. package/dist/ej2-angular-richtexteditor.umd.js +1042 -0
  8. package/dist/ej2-angular-richtexteditor.umd.js.map +1 -0
  9. package/dist/ej2-angular-richtexteditor.umd.min.js +11 -0
  10. package/dist/ej2-angular-richtexteditor.umd.min.js.map +1 -0
  11. package/ej2-angular-richtexteditor.d.ts +5 -0
  12. package/ej2-angular-richtexteditor.metadata.json +1 -0
  13. package/package.json +8 -21
  14. package/public_api.d.ts +1 -1
  15. package/schematics/utils/lib-details.js +2 -2
  16. package/schematics/utils/lib-details.ts +2 -2
  17. package/src/index.d.ts +4 -4
  18. package/src/rich-text-editor/richtexteditor-all.module.d.ts +27 -33
  19. package/src/rich-text-editor/richtexteditor.component.d.ts +96 -99
  20. package/src/rich-text-editor/richtexteditor.module.d.ts +5 -11
  21. package/CHANGELOG.md +0 -2965
  22. package/esm2020/public_api.mjs +0 -2
  23. package/esm2020/src/index.mjs +0 -5
  24. package/esm2020/src/rich-text-editor/richtexteditor-all.module.mjs +0 -89
  25. package/esm2020/src/rich-text-editor/richtexteditor.component.mjs +0 -245
  26. package/esm2020/src/rich-text-editor/richtexteditor.module.mjs +0 -25
  27. package/esm2020/syncfusion-ej2-angular-richtexteditor.mjs +0 -5
  28. package/fesm2015/syncfusion-ej2-angular-richtexteditor.mjs +0 -357
  29. package/fesm2015/syncfusion-ej2-angular-richtexteditor.mjs.map +0 -1
  30. package/fesm2020/syncfusion-ej2-angular-richtexteditor.mjs +0 -357
  31. package/fesm2020/syncfusion-ej2-angular-richtexteditor.mjs.map +0 -1
  32. package/syncfusion-ej2-angular-richtexteditor.d.ts +0 -5
package/README.md CHANGED
@@ -1,23 +1,12 @@
1
1
  # Angular Rich Text Editor | Angular Markdown Editor
2
2
 
3
- > **Using this package with an AI coding agent**
4
- >
5
- > Before generating Syncfusion® code, ask your AI coding agent to run the Syncfusion® setup using the following prompt:
6
- >
7
- > ```text
8
- > Set up this project for Syncfusion® before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com/agent-setup/prompt.md, then report the detected platform, installed skill pack, MCP status, and any required licensing action.
9
- > ```
10
- > The setup detects your project’s platform and loads the appropriate Syncfusion® skill pack. No Syncfusion® account or MCP key is required to install or read Syncfusion® agent skills.
11
- >
12
- > **Platform reference:** [https://ai.syncfusion.com/angular/llms.txt](https://ai.syncfusion.com/angular/llms.txt)
13
-
14
- The [Angular RichTextEditor](https://www.syncfusion.com/rich-text-editor-sdk/angular-rich-text-editor?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm) is a feature-rich WYSIWYG HTML editor and Markdown editor. The Rich Text Editor is widely used to create blogs, forum posts, notes sections, comment sections, messaging applications, and more. The component provides an efficient user interface for a better editing experience with mobile support. It has a variety of tools to edit and format rich content, and it return a valid HTML markup or Markdown (MD) content. It allows users to insert images, links, tables, media files and lists with modular architectures.
3
+ The [Angular RichTextEditor](https://www.syncfusion.com/angular-ui-components/angular-wysiwyg-rich-text-editor?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm) is a feature-rich WYSIWYG HTML editor and Markdown editor. The Rich Text Editor is widely used to create blogs, forum posts, notes sections, comment sections, messaging applications, and more. The component provides an efficient user interface for a better editing experience with mobile support. It has a variety of tools to edit and format rich content, and it return a valid HTML markup or Markdown (MD) content. It allows users to insert images, links, tables, media files and lists with modular architectures.
15
4
 
16
5
  <div align="center">
17
6
  <h4>
18
- <a href="https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/getting-started">📖Getting started</a> &#x2022;
7
+ <a href="https://ej2.syncfusion.com/angular/documentation/rich-text-editor/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm">📖Getting started</a> &#x2022;
19
8
  <a href="https://ej2.syncfusion.com/angular/demos/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm#/tailwind3/rich-text-editor/tools">🚀Online demos</a> &#x2022;
20
- <a href="https://www.syncfusion.com/rich-text-editor-sdk/angular-rich-text-editor?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm">🌐Learn more</a>
9
+ <a href="https://www.syncfusion.com/angular-components/angular-wysiwyg-rich-text-editor?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm">🌐Learn more</a>
21
10
  </h4>
22
11
  </div>
23
12
 
@@ -34,86 +23,76 @@ Trusted by the world's leading companies
34
23
 
35
24
  ## ⚡️ Quick Start
36
25
 
37
- This guide uses the Angular CLI as the development environment for the Angular Rich Text Editor. Install [Node.js](https://nodejs.org/), and the [Angular CLI](https://github.com/angular/angular-cli), before proceeding.
26
+ Syncfusion <sup>®</sup> Rich Text Editor is easy to integrate into Angular applications. Just install the package, configure the module, and drop the component into your template.
38
27
 
39
- ### Create an Angular application
28
+ ### 🛠️ Installation
40
29
 
41
- To set up the Angular CLI globally, run the following command.
30
+ Install the Rich Text Editor and its dependencies using npm:
42
31
 
43
- ```sh
44
- npm install -g @angular/cli
32
+ ```bash
33
+ npm install @syncfusion/ej2-angular-richtexteditor --save
45
34
  ```
46
35
 
47
- Then create a new application:
36
+ This command will:
48
37
 
49
- ```sh
50
- ng new my-app
51
- ```
38
+ * Adds `@syncfusion/ej2-angular-richtexteditor` package and its peer dependencies to your `package.json` file.
39
+ * Registers the Syncfusion<sup>®</sup> UI default theme (tailwind) in the `angular.json` file.
52
40
 
53
- This command prompts you to configure the stylesheet format, Server-Side Rendering (SSR/SSG), and AI tooling options. Select the options that best fit the project.
41
+ ### ⚙️ Setup
54
42
 
55
- Navigate to the project folder:
43
+ #### 1. Create an Angular Application
56
44
 
57
- ```sh
45
+ You can use [Angular CLI](https://github.com/angular/angular-cli) to setup your Angular applications. To install the Angular CLI, use the following command.
46
+
47
+ ```bash
48
+ npm install -g @angular/cli
49
+ ng new my-app
58
50
  cd my-app
59
51
  ```
60
52
 
61
- ### Install the Rich Text Editor package
53
+ #### 2. Import the Rich Text Editor Module
62
54
 
63
- The `@syncfusion/ej2-angular-richtexteditor` package supports Angular 14 and later.
55
+ In `app.module.ts`, import the required module:
64
56
 
65
- ```sh
66
- npm install @syncfusion/ej2-angular-richtexteditor --save
67
- ```
68
-
69
- ### Add the CSS reference
70
-
71
- Install the Syncfusion<sup>®</sup> [Tailwind 3](https://www.npmjs.com/package/@syncfusion/ej2-tailwind3-theme) theme package:
57
+ ```typescript
58
+ import { NgModule } from '@angular/core';
59
+ import { BrowserModule } from '@angular/platform-browser';
60
+ import { RichTextEditorAllModule } from '@syncfusion/ej2-angular-richtexteditor';
61
+ import { AppComponent } from './app.component';
62
+
63
+ @NgModule({
64
+ declarations: [AppComponent],
65
+ imports: [BrowserModule, RichTextEditorAllModule],
66
+ bootstrap: [AppComponent]
67
+ })
68
+ export class AppModule { }
72
69
 
73
- ```sh
74
- npm install @syncfusion/ej2-tailwind3-theme --save
75
70
  ```
76
71
 
77
- Then add the following CSS reference to the `src/styles.css` file:
78
-
79
- ```css
80
- @import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/rich-text-editor/index.css';
81
- ```
72
+ <blockquote>
73
+ <p>ℹ️ <b>Note:</b></p>
74
+ <span><code>RichTextEditorAllModule</code> includes all features of the Rich Text Editor. To reduce bundle size, consider importing only the required modules individually. For detailed information on module injection, refer to the Syncfusion Rich Text Editor Module <a href="https://ej2.syncfusion.com/angular/documentation/rich-text-editor/module">Documentation</a>.</span>
75
+ </blockquote>
82
76
 
83
- ### Add the Rich Text Editor component with required modules
77
+ ### 🧩 Add the Rich Text Editor Component
84
78
 
85
- Add the Rich Text Editor component to the `src/app/app.ts` file with the basic required modules, `Toolbar`, `Image`, `Link`, `HtmlEditor`, and `QuickToolbar`, provided using the `providers` array, and add the control's HTML elements to the component `template`:
79
+ In **src/app/app.component.ts**, use `<ejs-richtexteditor>` selector in `template` attribute of `@Component` directive to render the Syncfusion<sup>®</sup> Angular Rich Text Editor component.
86
80
 
87
81
  ```typescript
88
82
  import { Component } from '@angular/core';
89
- import { RichTextEditorModule, ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService } from '@syncfusion/ej2-angular-richtexteditor';
90
-
83
+ import { ToolbarService, LinkService, ImageService, HtmlEditorService } from '@syncfusion/ej2-angular-richtexteditor';
91
84
  @Component({
92
- selector: 'app-root',
93
- imports: [RichTextEditorModule],
94
- providers: [ToolbarService, LinkService, ImageService, HtmlEditorService, QuickToolbarService],
95
- template: `<ejs-richtexteditor id="editor" height="300px">
96
- <ng-template #valueTemplate>
97
- <p>Start editing your content here.</p>
98
- </ng-template>
99
- </ejs-richtexteditor>`
85
+ selector: 'app-root',
86
+ template: `<ejs-richtexteditor id='defaultRTE'>
87
+ <ng-template #valueTemplate>
88
+ <p>Start editing your content here.</p>
89
+ </ng-template>
90
+ </ejs-richtexteditor>`,
91
+ providers: [ToolbarService, LinkService, ImageService, HtmlEditorService]
100
92
  })
101
- export class App {}
102
- ```
103
-
104
- <blockquote>
105
- <p>ℹ️ <b>Note:</b></p>
106
- <span>The example above imports only the required services (<code>ToolbarService</code>, <code>LinkService</code>, <code>ImageService</code>, <code>HtmlEditorService</code>, <code>QuickToolbarService</code>) to keep the bundle size small. For detailed information on module injection, refer to the Syncfusion<sup>®</sup> Rich Text Editor Module <a href="https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/module">Documentation</a>.</span>
107
- </blockquote>
108
-
109
- ### Run the application
110
-
111
- ```sh
112
- ng serve --open
93
+ export class AppComponent { }
113
94
  ```
114
95
 
115
- Now, open your project in a browser, and the Rich Text Editor will be displayed! 🚀
116
-
117
96
  ## 🛠️ Supported frameworks
118
97
 
119
98
  Rich Text Editor component is also offered in following list of frameworks.
@@ -142,40 +121,40 @@ Rich Text Editor component is also offered in following list of frameworks.
142
121
 
143
122
  * [Checklist](https://ej2.syncfusion.com/angular/demos/#/tailwind3/rich-text-editor/tools) - Checklist support enables users to create interactive task lists in the editor. It is useful for organizing work items and tracking progress within content.
144
123
 
145
- * [Accessibility & WCAG 2.0 Compliance](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/accessibility) - Accessibility support helps the editor work with assistive technologies and keyboard navigation. It ensures the component can be used more effectively by a broader audience.
124
+ * [Accessibility & WCAG 2.0 Compliance](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/accessibility) - Accessibility support helps the editor work with assistive technologies and keyboard navigation. It ensures the component can be used more effectively by a broader audience.
146
125
 
147
- * [Preventing Cross-Site Scripting (XSS)](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/validation-security/xhtml-validation#cross-site-scripting-xss-prevention) - XSS protection helps validate and sanitize editor content before it is used or rendered. It reduces security risks by blocking malicious scripts and unsafe markup.
126
+ * [Preventing Cross-Site Scripting (XSS)](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/validation-security/xhtml-validation#cross-site-scripting-xss-prevention) - XSS protection helps validate and sanitize editor content before it is used or rendered. It reduces security risks by blocking malicious scripts and unsafe markup.
148
127
 
149
- * [HTML code editing](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/editor-value#source-code-editing) - HTML code editing lets users view and edit the underlying markup directly. It is helpful when precise control over the document structure is required.
128
+ * [HTML code editing](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/editor-value#source-code-editing) - HTML code editing lets users view and edit the underlying markup directly. It is helpful when precise control over the document structure is required.
150
129
 
151
- * [Markdown editor](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/editor-types/editor-mode#markdown-editor) - Markdown editor mode lets users create and edit content using Markdown syntax. It is ideal for lightweight authoring and text-based workflows.
130
+ * [Markdown editor](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/editor-types/editor-mode#markdown-editor) - Markdown editor mode lets users create and edit content using Markdown syntax. It is ideal for lightweight authoring and text-based workflows.
152
131
 
153
- * [Custom Toolbar Items](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/toolbar/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm#toolbar-items) - Custom toolbar items allow additional actions to be added to the editor toolbar. They help tailor the editing experience to specific application needs.
132
+ * [Custom Toolbar Items](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/toolbar/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm#toolbar-items) - Custom toolbar items allow additional actions to be added to the editor toolbar. They help tailor the editing experience to specific application needs.
154
133
 
155
- * [Quick Toolbar](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/toolbar/quick-toolbar) - Quick Toolbar shows contextual actions for selected content such as text, images, and tables. It helps users apply common operations without leaving the editing area.
134
+ * [Quick Toolbar](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/toolbar/quick-toolbar) - Quick Toolbar shows contextual actions for selected content such as text, images, and tables. It helps users apply common operations without leaving the editing area.
156
135
 
157
136
  * [File Browser](https://ej2.syncfusion.com/angular/demos/#/tailwind3/rich-text-editor/file-browser) - File Browser integration allows users to browse and select files within editor workflows. It supports file-based content management in a more seamless way.
158
137
 
159
- * [Emoji Picker](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/smart-editing/emoji-picker) - Emoji picker support lets users insert emojis into the editor content. It helps make messages and content more expressive and engaging.
138
+ * [Emoji Picker](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/smart-editing/emoji-picker) - Emoji picker support lets users insert emojis into the editor content. It helps make messages and content more expressive and engaging.
160
139
 
161
140
  * [Insert Media](https://ej2.syncfusion.com/angular/demos/#/tailwind3/rich-text-editor/insert-media) - Insert Media allows audio and video content to be embedded in the editor. It is useful for creating richer and more interactive documents.
162
141
 
163
- * [Toolbar](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/toolbar/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm/#toolbar-items) - Toolbar support provides editing controls and customization options for the editor. It supports floating behavior, multiple layout types, and toolbar positioning for flexible UI setups.
142
+ * [Toolbar](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/toolbar/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm/#toolbar-items) - Toolbar support provides editing controls and customization options for the editor. It supports floating behavior, multiple layout types, and toolbar positioning for flexible UI setups.
164
143
 
165
144
  * [Export and Import](https://ej2.syncfusion.com/angular/demos/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm/#/tailwind3/rich-text-editor/export-document) - Export and Import support allows content to be moved between the editor and document formats such as PDF and Word. It simplifies content sharing, archiving, and document processing.
166
145
 
167
- * [Undo and redo](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/undo-redo) - Undo and redo support lets users reverse or repeat recent editing actions. It improves editing confidence by making changes easier to correct.
146
+ * [Undo and redo](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/undo-redo) - Undo and redo support lets users reverse or repeat recent editing actions. It improves editing confidence by making changes easier to correct.
168
147
 
169
- * [Module injection](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm/#module-injection) - Module injection lets the editor load only the features that are needed. It helps reduce bundle size and keeps the component more efficient.
148
+ * [Module injection](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm/#module-injection) - Module injection lets the editor load only the features that are needed. It helps reduce bundle size and keeps the component more efficient.
170
149
 
171
- * [Third-party integration](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/third-party-integration/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm) - Third-party integration lets the editor work with external libraries and services. It extends the editor with additional capabilities beyond the built-in feature set.
150
+ * [Third-party integration](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/third-party-integration/?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm) - Third-party integration lets the editor work with external libraries and services. It extends the editor with additional capabilities beyond the built-in feature set.
172
151
 
173
152
  ## 📚 Resources
174
153
 
175
- * [Documentation](https://help.syncfusion.com/rich-text-editor-sdk/angular/rich-text-editor/getting-started)
154
+ * [Documentation](https://ej2.syncfusion.com/angular/documentation/rich-text-editor/getting-started)
176
155
  * [Theme Studio](https://ej2.syncfusion.com/themestudio/)
177
- * [What's New](https://www.syncfusion.com/products/whatsnew/rich-text-editor-sdk)
178
- * [Road Map](https://www.syncfusion.com/products/roadmap/rich-text-editor-sdk)
156
+ * [What's New](https://www.syncfusion.com/products/whatsnew/angular?utm_medium=listing&utm_source=github)
157
+ * [Road Map](https://www.syncfusion.com/products/roadmap/angular)
179
158
  * [E-Books](https://www.syncfusion.com/succinctly-free-ebooks?searchkey=angular&type=all)
180
159
 
181
160
  ## 🤝 Support
@@ -183,52 +162,11 @@ Rich Text Editor component is also offered in following list of frameworks.
183
162
  Product support is available through the following mediums.
184
163
 
185
164
  * [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
186
- * [Community forum](https://www.syncfusion.com/forums/rich-text-editor-sdk)
165
+ * [Community forum](https://www.syncfusion.com/forums/angular-js2?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm)
187
166
  * [GitHub issues](https://github.com/syncfusion/ej2-angular-ui-components/issues/new)
188
167
  * [Request feature or report bug](https://www.syncfusion.com/feedback/angular?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm)
189
168
  * Live chat
190
169
 
191
- ## Other Popular Angular Components
192
-
193
- Explore other popular Syncfusion<sup>®</sup> Angular components curated from UI components, standalone SDKs, and document solution suites.
194
-
195
- <table>
196
- <tr>
197
- <td align="center">
198
- <a href="https://www.syncfusion.com/angular-components/angular-data-grid">Angular DataGrid</a>
199
- </td>
200
- <td align="center">
201
- <a href="https://www.syncfusion.com/angular-components/angular-charts">Angular Charts</a>
202
- </td>
203
- <td align="center">
204
- <a href="https://www.syncfusion.com/angular-components/angular-file-manager">Angular File Manager</a>
205
- </td>
206
- <td align="center">
207
- <a href="https://www.syncfusion.com/gantt-sdk/angular-gantt-chart">Angular Gantt Chart</a>
208
- </td>
209
- <td align="center">
210
- <a href="https://www.syncfusion.com/diagram-sdk/angular-diagram">Angular Diagram</a>
211
- </td>
212
- </tr>
213
- <tr>
214
- <td align="center">
215
- <a href="https://www.syncfusion.com/scheduler-sdk/angular-scheduler">Angular Scheduler</a>
216
- </td>
217
- <td align="center">
218
- <a href="https://www.syncfusion.com/docx-editor-sdk/angular-docx-editor">Angular DOCX Editor</a>
219
- </td>
220
- <td align="center">
221
- <a href="https://www.syncfusion.com/pdf-viewer-sdk/angular-pdf-viewer">Angular PDF Viewer</a>
222
- </td>
223
- <td align="center">
224
- <a href="https://www.syncfusion.com/spreadsheet-editor-sdk/angular-spreadsheet-editor">Angular Spreadsheet Editor</a>
225
- </td>
226
- <td align="center">
227
- <a href="https://www.syncfusion.com/angular-components/angular-maps-library">Angular Maps</a>
228
- </td>
229
- </tr>
230
- </table>
231
-
232
170
  ## 🔄 Change log
233
171
 
234
172
  Check the changelog [here](https://github.com/syncfusion/ej2-angular-ui-components/blob/master/components/richtexteditor/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=angular-rich-text-editor-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.