advanced-editor-react
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
73 lines (72 loc) • 1.99 kB
JavaScript
import { a as p, A as x, W as C, l as B, i as S, B as g, f as h, g as I, C as k, b as A, d as E, u as R, w as H, E as M, N as b, z as L, G as T, F as y, c as F, t as z, H as q, e as D, k as G, j as K, x as O, r as P, X as U, D as W, o as _, I as j, K as v, p as w, L as N, Q as V, Y as J, M as Q, v as X, O as Y, y as Z, q as $, S as aa, n as sa, s as ea, J as ta, h as oa, T as ra, P as ia, U as na, V as la, R as da } from "./utils-92uYU3uX.js";
import { m as ca, n as ma, k as fa, q as pa, o as xa, p as Ca } from "./locales-LgNERLfg.js";
import { useRef as l, useState as t, useEffect as d } from "react";
import { B as Sa } from "./tiptap-88pCIW-2.js";
function c() {
var s;
const a = l({ editor: null }), [o, r] = t(!1), [i, n] = t(null);
return d(() => {
var e;
(e = a.current) != null && e.editor && (r(!0), n(a.current.editor));
}, [a, (s = a.current) == null ? void 0 : s.editor]), { isReady: o, editor: i, editorRef: a };
}
export {
p as AIGeneratorDialog,
x as Annotation,
C as Attachment,
B as BaseKit,
S as Blockquote,
g as Bold,
Sa as BubbleMenu,
h as BulletList,
I as Clear,
k as Code,
A as CodeBlock,
E as Color,
R as Column,
H as ColumnActionButton,
M as Emoji,
b as Excalidraw,
L as ExportPdf,
T as ExportWord,
y as FontFamily,
F as FontSize,
z as FormatPainter,
q as Heading,
D as Highlight,
G as History,
K as HorizontalRule,
O as Iframe,
P as Image,
U as ImageGif,
W as ImportWord,
_ as Indent,
j as Italic,
v as Katex,
w as LineHeight,
N as Link,
V as Mention,
J as Mermaid,
Q as MoreMark,
X as MultiColumn,
Y as OrderedList,
Z as SearchAndReplace,
$ as SlashCommand,
aa as Strike,
sa as SubAndSuperScript,
ea as Table,
ta as TableOfContents,
oa as TaskList,
ra as TextAlign,
ia as TextDirection,
na as Underline,
la as Video,
da as default,
ca as en,
ma as hu_HU,
fa as locale,
pa as pt_BR,
c as useEditorState,
xa as vi,
Ca as zh_CN
};