@apexcura/ui-components 0.0.15-Beta86 → 0.0.15-Beta87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +34 -4
- package/dist/index.mjs +33 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -377,19 +377,49 @@ var CkEditor = (props) => {
|
|
|
377
377
|
// src/Components/Editor.tsx
|
|
378
378
|
var import_react10 = __toESM(require("react"));
|
|
379
379
|
var import_ckeditor5_react = require("@ckeditor/ckeditor5-react");
|
|
380
|
-
var
|
|
380
|
+
var import_ckeditor5 = require("ckeditor5");
|
|
381
381
|
var Editor2 = (props) => {
|
|
382
382
|
const [ckEditor, setckEditor] = (0, import_react10.useState)(null);
|
|
383
383
|
console.log(ckEditor);
|
|
384
384
|
return /* @__PURE__ */ import_react10.default.createElement(
|
|
385
385
|
import_ckeditor5_react.CKEditor,
|
|
386
386
|
{
|
|
387
|
-
editor:
|
|
387
|
+
editor: import_ckeditor5.ClassicEditor,
|
|
388
388
|
config: {
|
|
389
389
|
placeholder: `Enter Text`,
|
|
390
390
|
toolbar: {
|
|
391
|
-
items: [
|
|
392
|
-
|
|
391
|
+
items: [
|
|
392
|
+
"undo",
|
|
393
|
+
"redo",
|
|
394
|
+
"|",
|
|
395
|
+
"blocks",
|
|
396
|
+
"|",
|
|
397
|
+
"bold",
|
|
398
|
+
"italic",
|
|
399
|
+
"forecolor",
|
|
400
|
+
"|",
|
|
401
|
+
"alignleft",
|
|
402
|
+
"aligncenter",
|
|
403
|
+
"|",
|
|
404
|
+
"alignright",
|
|
405
|
+
"alignjustify",
|
|
406
|
+
"|",
|
|
407
|
+
"bullist",
|
|
408
|
+
"numlist",
|
|
409
|
+
"outdent",
|
|
410
|
+
"indent",
|
|
411
|
+
"|",
|
|
412
|
+
"removeformat",
|
|
413
|
+
"|",
|
|
414
|
+
"help"
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
plugins: [
|
|
418
|
+
import_ckeditor5.Bold,
|
|
419
|
+
import_ckeditor5.Essentials,
|
|
420
|
+
import_ckeditor5.Italic,
|
|
421
|
+
import_ckeditor5.Paragraph
|
|
422
|
+
]
|
|
393
423
|
},
|
|
394
424
|
data: props.value || "",
|
|
395
425
|
onReady: (editor) => {
|
package/dist/index.mjs
CHANGED
|
@@ -307,7 +307,7 @@ var CkEditor = (props) => {
|
|
|
307
307
|
// src/Components/Editor.tsx
|
|
308
308
|
import React9, { useState as useState4 } from "react";
|
|
309
309
|
import { CKEditor } from "@ckeditor/ckeditor5-react";
|
|
310
|
-
import ClassicEditor from "
|
|
310
|
+
import { ClassicEditor, Bold, Essentials, Italic, Paragraph } from "ckeditor5";
|
|
311
311
|
var Editor2 = (props) => {
|
|
312
312
|
const [ckEditor, setckEditor] = useState4(null);
|
|
313
313
|
console.log(ckEditor);
|
|
@@ -318,8 +318,38 @@ var Editor2 = (props) => {
|
|
|
318
318
|
config: {
|
|
319
319
|
placeholder: `Enter Text`,
|
|
320
320
|
toolbar: {
|
|
321
|
-
items: [
|
|
322
|
-
|
|
321
|
+
items: [
|
|
322
|
+
"undo",
|
|
323
|
+
"redo",
|
|
324
|
+
"|",
|
|
325
|
+
"blocks",
|
|
326
|
+
"|",
|
|
327
|
+
"bold",
|
|
328
|
+
"italic",
|
|
329
|
+
"forecolor",
|
|
330
|
+
"|",
|
|
331
|
+
"alignleft",
|
|
332
|
+
"aligncenter",
|
|
333
|
+
"|",
|
|
334
|
+
"alignright",
|
|
335
|
+
"alignjustify",
|
|
336
|
+
"|",
|
|
337
|
+
"bullist",
|
|
338
|
+
"numlist",
|
|
339
|
+
"outdent",
|
|
340
|
+
"indent",
|
|
341
|
+
"|",
|
|
342
|
+
"removeformat",
|
|
343
|
+
"|",
|
|
344
|
+
"help"
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
plugins: [
|
|
348
|
+
Bold,
|
|
349
|
+
Essentials,
|
|
350
|
+
Italic,
|
|
351
|
+
Paragraph
|
|
352
|
+
]
|
|
323
353
|
},
|
|
324
354
|
data: props.value || "",
|
|
325
355
|
onReady: (editor) => {
|