Documentation Index
Fetch the complete documentation index at: https://mintlify.com/euclidesseg/euclides-workspace/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing Euclides Rich Editor, ensure your project meets these requirements:Angular Version
Angular Version
Euclides Rich Editor requires Angular 21.0.0 or higher.The editor is built as a standalone component and requires:
@angular/core^21.1.0@angular/common^21.1.0
TypeScript
TypeScript
TypeScript 5.9.2 or higher is recommended for the best development experience.
Node.js
Node.js
Node.js 18.x or higher is required for Angular 21.
Installation Steps
Install the package
Install Euclides Rich Editor using your preferred package manager:
The package includes all necessary ProseMirror dependencies and types.
Verify peer dependencies
Euclides Rich Editor has the following peer dependencies:These should already be installed in your Angular project. If not, install them:
package.json
Import the component
Since Euclides Rich Editor is a standalone component, you can import it directly in your component:
app.component.ts
No need to add the component to an
NgModule - it works out of the box with Angular’s standalone API.Add styles (optional)
The editor includes default styles. To customize the appearance, you can:
- Import the default styles in your
styles.cssorstyles.scss:
styles.css
- Or add custom styles targeting the editor classes:
styles.css
Troubleshooting
Module not found errors
Module not found errors
If you see errors like
Cannot find module 'euclides-rich-editor':- Ensure the package is installed:
npm list euclides-rich-editor - Clear your node_modules and reinstall:
- Restart your development server
Peer dependency warnings
Peer dependency warnings
If you see warnings about peer dependencies:Update your Angular version to 21.1.0 or higher:
TypeScript errors
TypeScript errors
If you encounter TypeScript compilation errors:
-
Ensure your
tsconfig.jsonhas proper settings:tsconfig.json -
Update TypeScript to version 5.9.2 or higher:
Editor not rendering
Editor not rendering
If the editor component doesn’t appear:
- Check browser console for errors
- Verify the component is imported in your standalone component or module
- Ensure you’re using the correct selector:
<euclides-rich-editor> - Check that Angular is properly bootstrapped in your
main.ts