@apexcura/ui-components 0.0.15-Beta83 → 0.0.15-Beta85
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -385,7 +385,7 @@ var Editor2 = (props) => {
|
|
|
385
385
|
import_ckeditor5_react.CKEditor,
|
|
386
386
|
{
|
|
387
387
|
editor: import_ckeditor5_build_classic.default,
|
|
388
|
-
config: { placeholder: `Enter Text`, toolbar: ["bold", "bulletedList", "numberedList"] },
|
|
388
|
+
config: { placeholder: `Enter Text`, toolbar: ["bold", "italic", "forecolor", "alignleft", "aligncenter", "bulletedList", "numberedList"] },
|
|
389
389
|
data: props.value || "",
|
|
390
390
|
onReady: (editor) => {
|
|
391
391
|
try {
|
|
@@ -395,7 +395,7 @@ var Editor2 = (props) => {
|
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
onChange: (event, editor) => {
|
|
398
|
-
|
|
398
|
+
props.onChange && props.onChange(editor.getData());
|
|
399
399
|
},
|
|
400
400
|
onBlur: (event, editor) => {
|
|
401
401
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -315,7 +315,7 @@ var Editor2 = (props) => {
|
|
|
315
315
|
CKEditor,
|
|
316
316
|
{
|
|
317
317
|
editor: ClassicEditor,
|
|
318
|
-
config: { placeholder: `Enter Text`, toolbar: ["bold", "bulletedList", "numberedList"] },
|
|
318
|
+
config: { placeholder: `Enter Text`, toolbar: ["bold", "italic", "forecolor", "alignleft", "aligncenter", "bulletedList", "numberedList"] },
|
|
319
319
|
data: props.value || "",
|
|
320
320
|
onReady: (editor) => {
|
|
321
321
|
try {
|
|
@@ -325,7 +325,7 @@ var Editor2 = (props) => {
|
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
327
|
onChange: (event, editor) => {
|
|
328
|
-
|
|
328
|
+
props.onChange && props.onChange(editor.getData());
|
|
329
329
|
},
|
|
330
330
|
onBlur: (event, editor) => {
|
|
331
331
|
},
|