npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@libs-ui/components-inputs-quill2x

v0.2.356-25

Published

`@libs-ui/components-inputs-quill2x` là một trình soạn thảo văn bản giàu tính năng (Rich Text Editor) mạnh mẽ dựa trên Quill 2.0. Nó cung cấp một giao diện linh hoạt, hiện đại và hỗ trợ nhiều tính năng nâng cao như bảng, hình ảnh, video, mention, emoji và

Downloads

1,762

Readme

Quill2x Rich Text Editor Component

@libs-ui/components-inputs-quill2x là một trình soạn thảo văn bản giàu tính năng (Rich Text Editor) mạnh mẽ dựa trên Quill 2.0. Nó cung cấp một giao diện linh hoạt, hiện đại và hỗ trợ nhiều tính năng nâng cao như bảng, hình ảnh, video, mention, emoji và tùy chỉnh toolbar.

Tính năng nổi bật

  • ✒️ Quill 2.0 Core: Tận dụng toàn bộ sức mạnh và độ ổn định của Quill 2.
  • 🛠️ Custom Toolbar: Hỗ trợ nhiều chế độ hiển thị toolbar (default, basic, all, custom) và tùy chỉnh vị trí cố định.
  • 🖼️ Media Support: Tích hợp trình tải lên hình ảnh, video và hỗ trợ resize hình ảnh.
  • 🏷️ Mention Integration: Hỗ trợ tính năng mention (@người dùng, #thẻ tag) mượt mà.
  • 📊 Table Support: Hỗ trợ tạo và quản lý bảng chuyên nghiệp với các thao tác dòng/cột.
  • 😀 Emoji Picker: Tích hợp sẵn bộ chọn emoji.
  • Validation: Hỗ trợ các quy tắc kiểm tra bắt buộc, độ dài tối thiểu/tối đa.
  • 📱 Responsive: Giao diện co giãn tốt và toolbar thông minh (nút xem thêm khi không đủ chỗ).
  • 🎨 Styling: Tùy chỉnh màu sắc văn bản, màu nền và phông chữ linh hoạt.

Cài đặt

Sử dụng npm hoặc yarn để cài đặt:

npm install @libs-ui/components-inputs-quill2x

Cách sử dụng

Import Module

import { LibsUiComponentsInputsQuill2xComponent } from '@libs-ui/components-inputs-quill2x';

@Component({
  standalone: true,
  imports: [LibsUiComponentsInputsQuill2xComponent],
  // ...
})
export class YourComponent {}

Ví dụ cơ bản

<libs_ui-components-inputs-quill2x
  [(item)]="formData"
  [fieldBind]="'content'"
  [placeholder]="'Nhập nội dung tại đây...'"></libs_ui-components-inputs-quill2x>

Chế độ Toolbar rút gọn (Basic)

<libs_ui-components-inputs-quill2x
  [(item)]="formData"
  [fieldBind]="'summary'"
  [quillCustomConfig]="{
    toolbar: { type: signal('basic') }
  }"></libs_ui-components-inputs-quill2x>

API Reference

Inputs

| Thuộc tính | Kiểu dữ liệu | Mặc định | Mô tả | | :------------------ | :--------------------- | :---------------------- | :-------------------------------------------------- | | item | TYPE_OBJECT | (Required) | Object chứa dữ liệu cần bind. | | fieldBind | string | (Required) | Tên trường trong item để bind giá trị HTML. | | placeholder | string | 'i18n_import_content' | Văn bản gợi ý khi editor trống. | | readonly | boolean | false | Chế độ chỉ đọc. | | displayToolbar | boolean | true | Hiển thị hoặc ẩn thanh công cụ. | | quillCustomConfig | IQuill2xCustomConfig | undefined | Cấu hình nâng cao cho toolbar và editor. | | dataConfigMention | IMentionConfig | undefined | Cấu hình cho tính năng mention. | | validRequired | IValidRequired | undefined | Quy tắc kiểm tra bắt buộc nhập. | | validMinLength | IValidLength | undefined | Quy tắc kiểm tra độ dài tối thiểu. | | validMaxLength | IValidLength | undefined | Quy tắc kiểm tra độ dài tối đa. | | resize | 'vertical' \| 'none' | 'none' | Cho phép thay đổi kích thước editor theo chiều dọc. |

Outputs

| Sự kiện | Kiểu dữ liệu | Mô tả | | :-------------------- | :----------------------------- | :--------------------------------------------------------------------------------------- | | outChange | string | Phát ra nội dung HTML mới khi có thay đổi. | | outFocus | void | Phát ra khi editor được focus. | | outBlur | void | Phát ra khi editor mất focus. | | outFunctionsControl | IQuill2xFunctionControlEvent | Cung cấp các phương thức điều khiển editor (setContent, insertText, quill(), ...). |

Types & Interfaces

IQuill2xCustomConfig

export interface IQuill2xCustomConfig {
  toolbar?: WritableSignal<{
    type: WritableSignal<'all' | 'default' | 'basic' | 'custom'>;
    positionFixed?: WritableSignal<{
      event: WritableSignal<'click' | 'mouseenter'>;
      elementShow: WritableSignal<HTMLElement>;
      // ...
    }>;
    // ...
  }>;
  // ...
}

Tech Stack

  • Core: Quill 2.0.3, Angular 18+ (Signals)
  • Plugins: @ssumo/quill-resize-module (Resize image)
  • Utilities: @libs-ui/utils, @libs-ui/components-inputs-mention

License

MIT