Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for rich text editor integration (Tiptap, Lexical, ProseMirror), collaborative editing, and custom extensions / Panduan ahli integrasi editor rich text (Tiptap, Lexical, ProseMirror), editing kolaboratif, dan ekstensi kustom.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
<a name="english"></a>
realtime-collaboration-expert: Yjs/Automerge CRDTs for collaborative editing.form-validation-expert: Form integration patterns for editor content.headless-cms-expert: CMS schema integration for rich text fields.file-upload-media-expert: Image/video embedding within editor content.senior-frontend: React component patterns for editor wrappers.Expert guide for integrating production-quality rich text editors into web applications. Covers Tiptap v2 (ProseMirror-based, extensible), Lexical (Meta's framework, high-performance), and ProseMirror (low-level, maximum control). Includes custom node/mark creation, collaborative editing with Yjs, slash commands, mention systems, image/video embedding, Portable Text output, and accessibility compliance.
| Criteria | Tiptap v2 | Lexical (Meta) | ProseMirror |
|---|---|---|---|
| Abstraction Level | High | Medium | Low |
| Framework | React, Vue, vanilla | React (primary) | Vanilla JS |
| Extension Ecosystem | ★★★★★ (50+ extensions) | ★★★ (growing) | ★★★★ (community) |
| Collaboration | Yjs built-in | Yjs plugin | Yjs via prosemirror-collab |
| Performance | ★★★★ | ★★★★★ | ★★★★ |
| Learning Curve | Low-Medium | Medium-High | High |
| Best For | Most apps, CMS | High-scale, messaging | Custom editors |
Recommendation: Use Tiptap v2 for 90% of use cases. Use Lexical for high-performance messaging apps. Use ProseMirror only when you need full low-level control.
import { useEditor, EditorContent } from '@tiptap/react';
import StarterKit from '@tiptap/starter-kit';
import Placeholder from '@tiptap/extension-placeholder';
import Image from '@tiptap/extension-image';
import Link from '@tiptap/extension-link';
import Collaboration from '@tiptap/extension-collaboration';
import * as Y from 'yjs';
const ydoc = new Y.Doc();
function RichEditor({ onUpdate }: { onUpdate: (json: object) => void }) {
const editor = useEditor({
extensions: [
StarterKit.configure({ history: false }), // Disable history for collab
Placeholder.configure({ placeholder: 'Start writing...' }),
Image.configure({ inline: true, allowBase64: false }),
Link.configure({ openOnClick: false, autolink: true }),
Collaboration.configure({ document: ydoc }),
],
onUpdate: ({ editor }) => onUpdate(editor.getJSON()),
});
return (
<div className="editor-wrapper">
<MenuBar editor={editor} />
<EditorContent editor={editor} className="prose max-w-none" />
</div>
);
}
import { Extension } from '@tiptap/core';
import Suggestion from '@tiptap/suggestion';
export const SlashCommands = Extension.create({
name: 'slashCommands',
addOptions() {
return {
suggestion: {
char: '/',
items: ({ query }) => [
{ title: 'Heading 1', command: ({ editor }) => editor.chain().focus().toggleHeading({ level: 1 }).run() },
{ title: 'Bullet List', command: ({ editor }) => editor.chain().focus().toggleBulletList().run() },
{ title: 'Code Block', command: ({ editor }) => editor.chain().focus().toggleCodeBlock().run() },
{ title: 'Image', command: ({ editor }) => { /* open upload dialog */ } },
].filter((item) => item.title.toLowerCase().includes(query.toLowerCase())),
},
};
},
addProseMirrorPlugins() {
return [Suggestion({ editor: this.editor, ...this.options.suggestion })];
},
});
import { LexicalComposer } from '@lexical/react/LexicalComposer';
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
import { ContentEditable } from '@lexical/react/LexicalContentEditable';
import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';
import { AutoFocusPlugin } from '@lexical/react/LexicalAutoFocusPlugin';
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
import { ListNode, ListItemNode } from '@lexical/list';
import { CodeNode } from '@lexical/code';
const editorConfig = {
namespace: 'MyEditor',
nodes: [HeadingNode, QuoteNode, ListNode, ListItemNode, CodeNode],
onError: (error: Error) => console.error(error),
theme: { /* custom theme classes */ },
};
function LexicalEditor() {
return (
<LexicalComposer initialConfig={editorConfig}>
<RichTextPlugin
contentEditable={<ContentEditable className="prose" />}
placeholder={<div className="text-gray-400">Start writing...</div>}
ErrorBoundary={LexicalErrorBoundary}
/>
<HistoryPlugin />
<AutoFocusPlugin />
</LexicalComposer>
);
}
editor.getHTML() for rendering in non-editor contexts.@tiptap/extension-markdown for developer-facing content.<a name="bahasa-indonesia"></a>
realtime-collaboration-expert: CRDT Yjs/Automerge untuk editing dokumen kolaboratif real-time.form-validation-expert: Pola integrasi formulir untuk konten rich text (Zod + React Hook Form).headless-cms-expert: Integrasi skema CMS untuk field rich text dan Portable Text.file-upload-media-expert: Upload gambar/video dengan presigned URL ke dalam konten editor.Panduan ahli untuk mengintegrasikan editor rich text berkualitas produksi ke dalam aplikasi web. Mencakup Tiptap v2 (berbasis ProseMirror, modular), Lexical (framework berperforma tinggi dari Meta), dan ProseMirror murni. Termasuk pembuatan ekstensi kustom (slash commands, mention, blockquote kustom), kolaborasi real-time dengan Yjs, sanitasi DOMPurify, dan output JSON/HTML.
/), tag mention (@), atau embedding media.import { useEditor, EditorContent } from '@tiptap/react';
import StarterKit from '@tiptap/starter-kit';
import Placeholder from '@tiptap/extension-placeholder';
import Image from '@tiptap/extension-image';
import Link from '@tiptap/extension-link';
export function EditorDokumen({ onPerubahan }: { onPerubahan: (json: object) => void }) {
const editor = useEditor({
extensions: [
StarterKit,
Placeholder.configure({ placeholder: 'Ketik "/" untuk perintah...' }),
Image.configure({ inline: true, allowBase64: false }),
Link.configure({ openOnClick: false, autolink: true }),
],
onUpdate: ({ editor }) => onPerubahan(editor.getJSON()),
});
return (
<div className="border border-slate-200 dark:border-slate-800 rounded-lg p-4 bg-white dark:bg-slate-900">
<EditorContent editor={editor} className="prose dark:prose-invert max-w-none focus:outline-none" />
</div>
);
}
import DOMPurify from 'isomorphic-dompurify';
export function bersihkanHtmlKonten(htmlMentah: string): string {
return DOMPurify.sanitize(htmlMentah, {
ALLOWED_TAGS: ['p', 'b', 'i', 'h1', 'h2', 'h3', 'ul', 'ol', 'li', 'a', 'img', 'pre', 'code'],
ALLOWED_ATTR: ['href', 'src', 'alt', 'title', 'target'],
});
}
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.