5htp-core 0.4.9-94 → 0.4.9-95
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.4.9-
|
|
4
|
+
"version": "0.4.9-95",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -205,7 +205,7 @@ export default ({ value, setValue, props }: {
|
|
|
205
205
|
|
|
206
206
|
{isMaxLength && <MaxLengthPlugin maxLength={30} />}
|
|
207
207
|
<DragDropPaste />
|
|
208
|
-
<AutoFocusPlugin />
|
|
208
|
+
{props.preview && <AutoFocusPlugin />}
|
|
209
209
|
<ClearEditorPlugin />
|
|
210
210
|
<ComponentPickerPlugin />
|
|
211
211
|
<EmojiPickerPlugin />
|
|
@@ -66,10 +66,10 @@ export default (props: Props & InputBaseProps<string>) => {
|
|
|
66
66
|
if (RichEditorUtils.active && RichEditorUtils.active?.title !== title)
|
|
67
67
|
RichEditorUtils.active.close();
|
|
68
68
|
|
|
69
|
-
// Set active
|
|
69
|
+
// Set active Editor
|
|
70
70
|
RichEditorUtils.active = {
|
|
71
71
|
title,
|
|
72
|
-
close: () => setIsPreview(true)
|
|
72
|
+
close: () => preview ? setIsPreview(true) : null
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// Load editor component if not alreayd done
|
|
@@ -461,6 +461,9 @@ Logs: ${this.config.enable ? `<br/>` + this.logsToHTML(report.logs) : 'Logs coll
|
|
|
461
461
|
|
|
462
462
|
public printHtml( html: string ): string {
|
|
463
463
|
|
|
464
|
+
if (!html)
|
|
465
|
+
return 'No data';
|
|
466
|
+
|
|
464
467
|
// Preserve spaces
|
|
465
468
|
html = html
|
|
466
469
|
.replace(/\t/g, ' ')
|