The Editor component for Angular represents a ready-for-use HTML text editor which can simplify web content creation or be a replacement of your HTML Text Areas.
npm install -g @angular/cli ng new jqwidgets-project cd jqwidgets-project
ng add jqwidgets-ngAlternatively, you can use the standard installation (Manual Setup)
jQWidgets UI for Angular is distributed as jqwidgets-ng NPM package
npm install jqwidgets-ng
@import 'jqwidgets-ng/jqwidgets/styles/jqx.base.css';
"styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css" ]
<jqxEditor [theme]="'fluent'" [width]="getWidth()" [height]="400">
<b>jqxEditor</b> is a HTML text editor designed to simplify web content creation. You can use it as a replacement of your Textarea.
<br />
<br />
Features include:
<br />
<ul>
<li>Text formatting</li>
<li>Text alignment</li>
<li>Hyperlink dialog</li>
<li>Image dialog</li>
<li>Bulleted list</li>
<li>Numbered list</li>
</ul>
</jqxEditor>
import { Component } from '@angular/core';
import { jqxEditorModule, jqxEditorComponent } from 'jqwidgets-ng/jqxeditor';
@Component({
selector: 'app-root',
imports: [jqxEditorModule],
standalone: true,
templateUrl: './app.component.html'
})
export class AppComponent {
getWidth(): any {
if (document.body.offsetWidth < 850) {
return '90%';
}
return 850;
}
}