{"id":50372415,"url":"https://github.com/ChauhanShubham8758/ngx-pro-editor","last_synced_at":"2026-06-01T10:00:41.917Z","repository":{"id":358945211,"uuid":"1243825810","full_name":"ChauhanShubham8758/ngx-pro-editor","owner":"ChauhanShubham8758","description":"ngx-pro-editor","archived":false,"fork":false,"pushed_at":"2026-05-19T18:18:33.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T21:20:51.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChauhanShubham8758.png","metadata":{"files":{"readme":"README-NPM.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-19T17:46:29.000Z","updated_at":"2026-05-19T18:18:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ChauhanShubham8758/ngx-pro-editor","commit_stats":null,"previous_names":["chauhanshubham8758/ngx-pro-editor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ChauhanShubham8758/ngx-pro-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChauhanShubham8758%2Fngx-pro-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChauhanShubham8758%2Fngx-pro-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChauhanShubham8758%2Fngx-pro-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChauhanShubham8758%2Fngx-pro-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChauhanShubham8758","download_url":"https://codeload.github.com/ChauhanShubham8758/ngx-pro-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChauhanShubham8758%2Fngx-pro-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33769492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-30T08:00:26.074Z","updated_at":"2026-06-01T10:00:41.905Z","avatar_url":"https://github.com/ChauhanShubham8758.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Editors"],"readme":"# NGX Pro Editor\n\n\u003cdiv align=\"center\"\u003e\n\n![NPM Version](https://img.shields.io/npm/v/ngx-pro-editor)\n![NPM Downloads](https://img.shields.io/npm/dm/ngx-pro-editor)\n![License](https://img.shields.io/npm/l/ngx-pro-editor)\n![Angular](https://img.shields.io/badge/Angular-17%2B-red)\n\n**A powerful, feature-rich WYSIWYG editor for Angular applications**\n\n[GitHub](https://github.com/ChauhanShubham8758/ngx-pro-editor) • [Report Bug](https://github.com/ChauhanShubham8758/ngx-pro-editor/issues)\n\n\u003c/div\u003e\n\n---\n\n## ✨ Features\n\n### 📝 Rich Text Editing\n- **Text Formatting**: Bold, Italic, Underline, Strikethrough, Superscript, Subscript\n- **Fonts**: 12 font families with live preview\n- **Font Sizes**: 18 sizes from 8px to 72px\n- **Colors**: 60+ text colors and 32+ highlight colors\n- **Alignment**: Left, Center, Right, Justify\n- **Lists**: Bullet lists, Numbered lists, Indent/Outdent\n\n### 🎨 Advanced Formatting\n- **Line Spacing**: 6 preset options (1.0, 1.15, 1.5, 2.0, 2.5, 3.0)\n- **Letter Spacing**: 5 spacing options from Tight to Widest\n- **Text Transform**: UPPERCASE, lowercase, Capitalize\n- **Text Shadows**: 5 shadow effects with live preview\n- **Block Formats**: Headings (H1-H6), Blockquote, Code Block\n\n### 🖼️ Media \u0026 Content\n- **Images**: Upload, resize with drag handles, position control\n- **Links**: Insert/edit with new tab option\n- **Tables**: Create, edit, add/delete rows/columns, styling options\n- **File Attachments**: Upload and attach files with icons\n- **Horizontal Rules**: Insert dividers\n\n### 🔤 Special Characters\n- **200+ Characters** organized in categories:\n  - Symbols: ©, ®, ™, §, ¶, †, ‡, •, arrows, checkmarks, stars\n  - Emojis: 😊 😍 👍 ❤️ ⭐ 🔥 and 90+ more\n  - Math: α, β, π, Σ, ∫, √, ≈, ≠, ∞\n  - Currency: $, €, £, ¥, ₹, ₿\n\n### 💾 Auto-Save\n- Automatic saving to localStorage\n- Configurable save intervals\n- Draft recovery on page reload\n- Visual save indicator\n\n### 📱 Responsive Preview\n- **Mobile Preview** (375px)\n- **Tablet Preview** (768px)\n- **Desktop Preview** (1200px)\n- Live content preview in device frames\n\n### 📤 Export Options\n- **Print**: Direct print with formatted output\n- **Print Preview**: Preview before printing\n- **Export to PDF**: Browser's print-to-PDF functionality\n\n### 🔍 Find \u0026 Replace\n- Case-sensitive search\n- Regular expression support\n- Find next/previous\n- Replace single or all occurrences\n\n### ⌨️ Keyboard Shortcuts\n- `Ctrl+B`: Bold\n- `Ctrl+I`: Italic\n- `Ctrl+U`: Underline\n- `Ctrl+Z`: Undo\n- `Ctrl+Y`: Redo\n- `Ctrl+F`: Find \u0026 Replace\n\n### 🎨 Themes\n- Dark theme (default)\n- Light theme\n- Customizable via CSS variables\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install ngx-pro-editor\n```\n\n### Required Dependencies\n\nAdd Material Icons to your `index.html`:\n\n```html\n\u003clink href=\"https://fonts.googleapis.com/css2?family=Material+Icons+Round\" rel=\"stylesheet\"\u003e\n\u003clink href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700\u0026display=swap\" rel=\"stylesheet\"\u003e\n```\n\n---\n\n## 🚀 Quick Start\n\n### Basic Usage\n\n```typescript\nimport { Component } from '@angular/core';\nimport { NgxProEditorComponent } from 'ngx-pro-editor';\n\n@Component({\n  selector: 'app-root',\n  standalone: true,\n  imports: [NgxProEditorComponent],\n  template: `\n    \u003cngx-pro-editor \n      [config]=\"editorConfig\"\n      (save)=\"onSave($event)\"\n      (htmlChange)=\"onContentChange($event)\"\u003e\n    \u003c/ngx-pro-editor\u003e\n  `\n})\nexport class AppComponent {\n  editorConfig = {\n    placeholder: 'Start typing...',\n    minHeight: 400,\n    autoSave: true,\n    theme: 'dark'\n  };\n\n  onSave(html: string) {\n    console.log('Content saved:', html);\n  }\n\n  onContentChange(html: string) {\n    console.log('Content changed:', html);\n  }\n}\n```\n\n### With Auto-Save\n\n```typescript\neditorConfig = {\n  placeholder: 'Write your content...',\n  minHeight: 500,\n  autoSave: true,\n  autoSaveInterval: 30000, // Save every 30 seconds\n  autoSaveKey: 'my-editor-draft',\n  theme: 'dark'\n};\n```\n\n### With Image Upload\n\n```typescript\neditorConfig = {\n  placeholder: 'Start typing...',\n  minHeight: 400,\n  imageUploadHandler: async (file: File) =\u003e {\n    const formData = new FormData();\n    formData.append('image', file);\n    const response = await fetch('/api/upload', {\n      method: 'POST',\n      body: formData\n    });\n    const data = await response.json();\n    return data.url; // Return image URL\n  },\n  maxImageSize: 5 * 1024 * 1024 // 5MB\n};\n```\n\n---\n\n## ⚙️ Configuration\n\n### EditorConfig Interface\n\n```typescript\ninterface EditorConfig {\n  // Basic Settings\n  placeholder?: string;              // Default: 'Start typing...'\n  minHeight?: number;                // Default: 400\n  maxHeight?: number;                // Optional\n  initialContent?: string;           // Initial HTML content\n  autoFocus?: boolean;               // Default: false\n  spellcheck?: boolean;              // Default: true\n  theme?: 'dark' | 'light';          // Default: 'dark'\n  \n  // Auto-Save\n  autoSave?: boolean;                // Default: false\n  autoSaveInterval?: number;         // Default: 30000 (30 seconds)\n  autoSaveKey?: string;              // Default: 'ngx-pro-editor-autosave'\n  \n  // Image Upload\n  imageUploadHandler?: (file: File) =\u003e Promise\u003cstring\u003e;\n  maxImageSize?: number;             // Default: 5242880 (5MB)\n  \n  // File Upload\n  fileUploadHandler?: (file: File) =\u003e Promise\u003cstring\u003e;\n  maxFileSize?: number;              // Default: 10485760 (10MB)\n}\n```\n\n---\n\n## 🎯 Component API\n\n### Inputs\n\n| Input | Type | Default | Description |\n|-------|------|---------|-------------|\n| `config` | EditorConfig | DEFAULT_EDITOR_CONFIG | Editor configuration |\n| `initialValue` | string | '' | Initial HTML content |\n| `title` | string | 'Document' | Document title |\n\n### Outputs\n\n| Output | Type | Description |\n|--------|------|-------------|\n| `save` | EventEmitter\u003cstring\u003e | Emitted when save button is clicked |\n| `htmlChange` | EventEmitter\u003cstring\u003e | Emitted on every content change |\n\n### Methods\n\n```typescript\n// Get current HTML content\ngetHTML(): string\n\n// Set HTML content programmatically\nsetHTML(html: string): void\n\n// Clear auto-saved draft\nclearAutoSave(): void\n```\n\n### Usage Example\n\n```typescript\nimport { Component, ViewChild } from '@angular/core';\nimport { NgxProEditorComponent } from 'ngx-pro-editor';\n\n@Component({\n  template: `\n    \u003cngx-pro-editor \n      #editor\n      [config]=\"config\"\n      [initialValue]=\"initialContent\"\n      (save)=\"onSave($event)\"\u003e\n    \u003c/ngx-pro-editor\u003e\n    \n    \u003cbutton (click)=\"getContent()\"\u003eGet Content\u003c/button\u003e\n    \u003cbutton (click)=\"clearDraft()\"\u003eClear Draft\u003c/button\u003e\n  `\n})\nexport class MyComponent {\n  @ViewChild('editor') editor!: NgxProEditorComponent;\n  \n  config = { autoSave: true };\n  initialContent = '\u003cp\u003eHello World!\u003c/p\u003e';\n  \n  onSave(html: string) {\n    // Save to backend\n  }\n  \n  getContent() {\n    const html = this.editor.getHTML();\n    console.log(html);\n  }\n  \n  clearDraft() {\n    this.editor.clearAutoSave();\n  }\n}\n```\n\n---\n\n## 🎨 Theming\n\n### Using Built-in Themes\n\n```typescript\n// Dark theme (default)\nconfig = { theme: 'dark' };\n\n// Light theme\nconfig = { theme: 'light' };\n```\n\n### Custom Styling\n\nOverride CSS variables in your global styles:\n\n```css\n:root {\n  --color-primary: #4f46e5;\n  --color-primary-hover: #4338ca;\n  --bg-editor: #1a1a2e;\n  --text-primary: #ffffff;\n  --border-default: #2d2d3a;\n}\n```\n\n---\n\n## 📸 Screenshots\n\n### Editor Interface\n![Editor](https://via.placeholder.com/800x400?text=Editor+Interface)\n\n### Responsive Preview\n![Responsive Preview](https://via.placeholder.com/800x400?text=Responsive+Preview)\n\n### Special Characters\n![Special Characters](https://via.placeholder.com/800x400?text=Special+Characters)\n\n---\n\n## 🔧 Advanced Usage\n\n### Complete Example\n\n```typescript\nimport { Component, ViewChild } from '@angular/core';\nimport { NgxProEditorComponent, EditorConfig } from 'ngx-pro-editor';\n\n@Component({\n  selector: 'app-editor',\n  standalone: true,\n  imports: [NgxProEditorComponent],\n  template: `\n    \u003cdiv class=\"editor-container\"\u003e\n      \u003cngx-pro-editor \n        #editor\n        [config]=\"editorConfig\"\n        [initialValue]=\"initialContent\"\n        (save)=\"onSave($event)\"\n        (htmlChange)=\"onContentChange($event)\"\u003e\n      \u003c/ngx-pro-editor\u003e\n    \u003c/div\u003e\n  `\n})\nexport class EditorComponent {\n  @ViewChild('editor') editor!: NgxProEditorComponent;\n\n  editorConfig: EditorConfig = {\n    placeholder: 'Start writing your content...',\n    minHeight: 500,\n    autoFocus: true,\n    spellcheck: true,\n    theme: 'dark',\n    \n    // Auto-save configuration\n    autoSave: true,\n    autoSaveInterval: 30000,\n    autoSaveKey: 'my-editor-draft',\n    \n    // Image upload\n    imageUploadHandler: this.uploadImage,\n    maxImageSize: 5 * 1024 * 1024,\n    \n    // File upload\n    fileUploadHandler: this.uploadFile,\n    maxFileSize: 10 * 1024 * 1024\n  };\n\n  initialContent = '\u003cp\u003eWelcome to NGX Pro Editor!\u003c/p\u003e';\n\n  async uploadImage(file: File): Promise\u003cstring\u003e {\n    // Your upload logic here\n    const formData = new FormData();\n    formData.append('image', file);\n    const response = await fetch('/api/upload/image', {\n      method: 'POST',\n      body: formData\n    });\n    const data = await response.json();\n    return data.url;\n  }\n\n  async uploadFile(file: File): Promise\u003cstring\u003e {\n    // Your upload logic here\n    const formData = new FormData();\n    formData.append('file', file);\n    const response = await fetch('/api/upload/file', {\n      method: 'POST',\n      body: formData\n    });\n    const data = await response.json();\n    return data.url;\n  }\n\n  onSave(html: string) {\n    console.log('Saving content:', html);\n    // Save to your backend\n  }\n\n  onContentChange(html: string) {\n    console.log('Content changed');\n  }\n}\n```\n\n---\n\n## 🌐 Browser Support\n\n- Chrome 90+\n- Firefox 88+\n- Safari 14+\n- Edge 90+\n\n---\n\n## 📝 Changelog\n\nSee [CHANGELOG.md](https://github.com/ChauhanShubham8758/ngx-pro-editor/blob/main/CHANGELOG.md) for version history.\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Please read our [Contributing Guide](https://github.com/ChauhanShubham8758/ngx-pro-editor/blob/main/CONTRIBUTING.md) for details.\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/ChauhanShubham8758/ngx-pro-editor/blob/main/LICENSE) file for details.\n\n---\n\n## 💬 Support\n\n- 📧 Email: chauhanshubham19765@gmail.com\n- 🐛 [Report Issues](https://github.com/ChauhanShubham8758/ngx-pro-editor/issues)\n- 💡 [Feature Requests](https://github.com/ChauhanShubham8758/ngx-pro-editor/issues/new)\n- 📖 [Documentation](https://github.com/ChauhanShubham8758/ngx-pro-editor)\n\n---\n\n## ⭐ Show Your Support\n\nIf you find this project useful, please consider giving it a star on GitHub!\n\n[![GitHub stars](https://img.shields.io/github/stars/ChauhanShubham8758/ngx-pro-editor?style=social)](https://github.com/ChauhanShubham8758/ngx-pro-editor)\n\n---\n\n## 🙏 Acknowledgments\n\n- Built with [Angular](https://angular.io/)\n- Icons by [Material Icons](https://fonts.google.com/icons)\n- Font by [Inter](https://rsms.me/inter/)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ for the Angular community**\n\n[NPM](https://www.npmjs.com/package/ngx-pro-editor) • [GitHub](https://github.com/ChauhanShubham8758/ngx-pro-editor) • [Issues](https://github.com/ChauhanShubham8758/ngx-pro-editor/issues)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChauhanShubham8758%2Fngx-pro-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChauhanShubham8758%2Fngx-pro-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChauhanShubham8758%2Fngx-pro-editor/lists"}