add this line to styles section of angular.json:
"node_modules/quill/dist/quill.snow.css"
Answer from Mojtaba Nejad Poor Esmaeili on Stack OverflowPrimeNG
primeng.org › editor
PrimeNG
We cannot provide a description for this page right now
YouTube
youtube.com › watch
PrimeNG Editor and its Customization - Angular - YouTube
PrimeNG Editor with Examples and Its customization with QuillBelow is the full playlist of Angular PrimeNG with exampleshttps://www.youtube.com/playlist?list...
Published October 30, 2022
JSON Formatter
jsonformatter.org › c65562
stylemodules
Online JSON Formatter and Online JSON Validator provide JSON converter tools to convert JSON to XML, JSON to CSV, and JSON to YAML also JSON Editor, JSONLint, JSON Checker, and JSON Cleaner.
npm
npmjs.com › package › ng2-json-editor
ng2-json-editor - npm
Angular2 component for editing large json documents. Latest version: 0.25.52, last published: 2 years ago. Start using ng2-json-editor in your project by running `npm i ng2-json-editor`. There are 4 other projects in the npm registry using ...
» npm install ng2-json-editor
Published Sep 19, 2023
Version 0.25.52
Author Harun Urhan
UNPKG
app.unpkg.com › primeng@11.4.2 › files › editor › primeng-editor.metadata.json
primeng
primefaces/primeng · 1 lines • 7.77 kB · JSON · View Raw · 1 · {"__symbolic":"module","version":4,"metadata":{"EDITOR_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":8,"character":11},"useExisting":{"__symbolic":"reference","name":"Editor"},"multi":true},"Editor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"p-editor","template":"\n <div [ngClass]=\"'p-editor-container'\" [class]=
GitHub
github.com › primefaces › primeng › issues › 14721
Component: Editor - Upgrade Quill to 2.0 · Issue #14721 · primefaces/primeng
January 4, 2024 - Describe the bug Hi 👋 I'm the maintainer of Quill and we are currently working actively for Quill 2.0. Given PrimeNG is still using Quill 1.3, I'm wondering if you'd like to take a PR o...
Author luin
GeeksforGeeks
geeksforgeeks.org › angular-primeng-form-editor-component
Angular PrimeNG Form Editor Component | GeeksforGeeks
April 28, 2025 - Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Form Editor Default Component in Angular PrimeNG.
Stack Overflow
stackoverflow.com › questions › 58901282 › how-to-display-nested-json-data-in-primeng-table-in-angular-7
html - How To display nested json data in primeng table in angular 7 - Stack Overflow
I would recommend you to parse the JSON in-plane object format before assigning it to the table. With that JSON structure, even if you achieve with nested object, you may have to override a few table functionality like searching, sorting, etc.
Top answer 1 of 2
5
Firstly,put your component.ts
import { Editor } from 'primeng/editor';
declare var Quill: any;
and add this line in constructor
var fontSizeStyle = Quill.import('attributors/style/size');
fontSizeStyle.whitelist = ['24px', '48px', '100px', '200px'];
Quill.register(fontSizeStyle, true);
At the last,change your html
<span class="ql-formats">
<select class="ql-size">
<option value="24px">24</option>
<option value="48px">48</option>
<option value="100px">100</option>
<option value="200px">200</option>
</select>
</span>
Example
2 of 2
0
First get the style/size whitelisted in the .ts:
constructor(){
var fontSizeStyle = Quill.import('attributors/style/size');
fontSizeStyle.whitelist = ['0.75em','1em','1.5em','2.5em', '24px', '48px', '100px', '200px'];
Quill.register(fontSizeStyle, true);
}
Now in the html file we used this whitelisted options:
<span class="ql-formats">
<select class="ql-size">
<option value="0.75em">small</option>
<option value="1em" selected></option>
<option value="1.5em">large</option>
<option value="2.5em">huge</option>
</select>
</span>
<span class="ql-formats">
<select class="ql-size">
<option value="24px">24</option>
<option value="48px">48</option>
<option value="100px">100</option>
<option value="200px">200</option>
</select>
</span>
Check the change of the value of the first dropdown options.
You can declare the var Quill so it doesn't have problems with the undefined variable: (this is how primeng does it too)
declare var Quill: any;
Working example here:
https://stackblitz.com/edit/quill-55477705?file=src/app/app.component.ts
GitHub
github.com › primefaces › primeng-quickstart-cli › blob › master › angular.json
primeng-quickstart-cli/angular.json at master · primefaces/primeng-quickstart-cli
CLI Setup for PrimeNG. Contribute to primefaces/primeng-quickstart-cli development by creating an account on GitHub.
Author primefaces
Sudheerjonna
sudheerjonna.com › blog › 2017 › 07 › 06 › nested-json-structure-usage-with-primeng-datatable
Nested JSON structure usage with PrimeNG DataTable – SudheerJonna
PrimeNG DataTable is the most popular and complex component with it’s vast features. In real-time applications, we will use HTTP module to retrieve the data from remote data sources. Most of the time we will imagine that the result JSON structure would be interpreted as flatten type.
PrimeNG
v17.primeng.org › editor
Angular Editor Component
Editor uses Quill editor underneath so it needs to be installed as a dependency.
npm
npmjs.com › package › ngx-json-viewer
ngx-json-viewer - npm
JSON formatter / viewer for Angular. Latest version: 3.2.1, last published: 3 years ago. Start using ngx-json-viewer in your project by running `npm i ngx-json-viewer`. There are 44 other projects in the npm registry using ngx-json-viewer.
» npm install ngx-json-viewer
Published Nov 21, 2022
Version 3.2.1
Author Vivo Xu
Repository https://github.com/hivivo/ngx-json-viewer
Stack Overflow
stackoverflow.com › questions › 78720106 › initialize-primeng-editor-component-with-existing-data
angular - initialize primeng editor component with existing data - Stack Overflow
import { CommonModule } from '@angular/common'; import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { EditorModule } from 'primeng/editor'; @Component({ selector: 'app-editor', templateUrl: './editor.component.html', styleUrls: ['./editor.component.scss'], standalone: true, imports: [FormsModule, CommonModule, EditorModule] }) export class EditorComponent implements OnInit { @Input() value: string | undefined = ''; @Input() readOnly: boolean = false; @Input() required: boolean = false; @Input() showLabel: boolean = true; @Input() label: string = ''; @Output() valueChange = new EventEmitter<string>(); constructor() { } ngOnInit() { if (this.value) { this.valueChange.emit(this.value); } } onTextChange(event: any): void { this.value = event.htmlValue; this.valueChange.emit(this.value); } }
