@firestitch/html-editor 12.0.4 → 12.1.1
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/app/{classes → modules/html-editor/classes}/plugin.d.ts +0 -0
- package/app/{components → modules/html-editor/components}/html-editor/html-editor.component.d.ts +0 -0
- package/app/{consts → modules/html-editor/consts}/paragraph-buttons.const.d.ts +0 -0
- package/app/{consts → modules/html-editor/consts}/rich-buttons.const.d.ts +0 -0
- package/app/{consts → modules/html-editor/consts}/text-buttons.const.d.ts +0 -0
- package/app/{enums → modules/html-editor/enums}/default-plugin.enum.d.ts +0 -0
- package/app/{fs-html-editor.module.d.ts → modules/html-editor/fs-html-editor.module.d.ts} +5 -5
- package/app/{injects → modules/html-editor/injects}/config.inject.d.ts +0 -0
- package/app/{interfaces → modules/html-editor/interfaces}/html-editor-config.d.ts +0 -0
- package/app/{interfaces → modules/html-editor/interfaces}/plugin-button.d.ts +0 -0
- package/app/{interfaces → modules/html-editor/interfaces}/plugin-config.d.ts +0 -0
- package/app/{plugins → modules/html-editor/plugins}/checklist.plugin.d.ts +0 -0
- package/app/{plugins → modules/html-editor/plugins}/code.plugin.d.ts +0 -0
- package/app/{plugins → modules/html-editor/plugins}/configs/mention-plugin.config.d.ts +0 -0
- package/app/{plugins → modules/html-editor/plugins}/configs/screen-record-plugin.config.d.ts +0 -0
- package/app/{plugins → modules/html-editor/plugins}/mention.plugin.d.ts +0 -0
- package/app/modules/html-editor/plugins/realtime.plugin.d.ts +7 -0
- package/app/{plugins → modules/html-editor/plugins}/screen-record.plugin.d.ts +0 -0
- package/app/{services → modules/html-editor/services}/froala-loader.service.d.ts +0 -0
- package/app/{utils → modules/html-editor/utils}/loader.d.ts +0 -0
- package/app/{components → modules/html-renderer/components}/html-renderer/html-renderer.component.d.ts +0 -0
- package/app/modules/html-renderer/fs-html-renderer.module.d.ts +8 -0
- package/bundles/firestitch-html-editor.umd.js +51 -6
- package/bundles/firestitch-html-editor.umd.js.map +1 -1
- package/esm2015/app/modules/html-editor/classes/plugin.js +5 -0
- package/esm2015/app/modules/html-editor/components/html-editor/html-editor.component.js +493 -0
- package/esm2015/app/modules/html-editor/consts/paragraph-buttons.const.js +9 -0
- package/esm2015/app/modules/html-editor/consts/rich-buttons.const.js +7 -0
- package/esm2015/app/modules/html-editor/consts/text-buttons.const.js +19 -0
- package/esm2015/app/modules/html-editor/enums/default-plugin.enum.js +2 -0
- package/esm2015/app/modules/html-editor/fs-html-editor.module.js +68 -0
- package/esm2015/app/modules/html-editor/injects/config.inject.js +4 -0
- package/esm2015/app/modules/html-editor/interfaces/html-editor-config.js +2 -0
- package/esm2015/app/modules/html-editor/interfaces/plugin-button.js +2 -0
- package/esm2015/app/modules/html-editor/interfaces/plugin-config.js +2 -0
- package/esm2015/app/modules/html-editor/plugins/checklist.plugin.js +35 -0
- package/esm2015/app/modules/html-editor/plugins/code.plugin.js +63 -0
- package/esm2015/app/modules/html-editor/plugins/configs/mention-plugin.config.js +2 -0
- package/esm2015/app/modules/html-editor/plugins/configs/screen-record-plugin.config.js +2 -0
- package/esm2015/app/modules/html-editor/plugins/mention.plugin.js +87 -0
- package/esm2015/app/modules/html-editor/plugins/realtime.plugin.js +13 -0
- package/esm2015/app/modules/html-editor/plugins/screen-record.plugin.js +94 -0
- package/esm2015/app/modules/html-editor/services/froala-loader.service.js +80 -0
- package/esm2015/app/modules/html-editor/utils/loader.js +84 -0
- package/esm2015/app/modules/html-renderer/components/html-renderer/html-renderer.component.js +29 -0
- package/esm2015/app/modules/html-renderer/fs-html-renderer.module.js +26 -0
- package/esm2015/public_api.js +14 -12
- package/fesm2015/firestitch-html-editor.js +43 -7
- package/fesm2015/firestitch-html-editor.js.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +18 -16
- package/styles.scss +12 -0
- package/esm2015/app/classes/plugin.js +0 -5
- package/esm2015/app/components/html-editor/html-editor.component.js +0 -490
- package/esm2015/app/components/html-renderer/html-renderer.component.js +0 -29
- package/esm2015/app/consts/paragraph-buttons.const.js +0 -9
- package/esm2015/app/consts/rich-buttons.const.js +0 -7
- package/esm2015/app/consts/text-buttons.const.js +0 -19
- package/esm2015/app/enums/default-plugin.enum.js +0 -2
- package/esm2015/app/fs-html-editor.module.js +0 -69
- package/esm2015/app/injects/config.inject.js +0 -4
- package/esm2015/app/interfaces/html-editor-config.js +0 -2
- package/esm2015/app/interfaces/plugin-button.js +0 -2
- package/esm2015/app/interfaces/plugin-config.js +0 -2
- package/esm2015/app/plugins/checklist.plugin.js +0 -35
- package/esm2015/app/plugins/code.plugin.js +0 -63
- package/esm2015/app/plugins/configs/mention-plugin.config.js +0 -2
- package/esm2015/app/plugins/configs/screen-record-plugin.config.js +0 -2
- package/esm2015/app/plugins/mention.plugin.js +0 -87
- package/esm2015/app/plugins/screen-record.plugin.js +0 -94
- package/esm2015/app/services/froala-loader.service.js +0 -80
- package/esm2015/app/utils/loader.js +0 -84
|
File without changes
|
package/app/{components → modules/html-editor/components}/html-editor/html-editor.component.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,14 +3,14 @@ import { FsHtmlEditorConfig } from './interfaces/html-editor-config';
|
|
|
3
3
|
import { FroalaPlugin } from './enums/default-plugin.enum';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "./components/html-editor/html-editor.component";
|
|
6
|
-
import * as i2 from "
|
|
7
|
-
import * as i3 from "@
|
|
8
|
-
import * as i4 from "@firestitch/
|
|
9
|
-
import * as i5 from "
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "@firestitch/skeleton";
|
|
8
|
+
import * as i4 from "@firestitch/label";
|
|
9
|
+
import * as i5 from "../html-renderer/fs-html-renderer.module";
|
|
10
10
|
export declare class FsHtmlEditorModule {
|
|
11
11
|
static forRoot(config?: FsHtmlEditorConfig): ModuleWithProviders<FsHtmlEditorModule>;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlEditorModule, [typeof i1.FsHtmlEditorComponent, typeof i2.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlEditorModule, [typeof i1.FsHtmlEditorComponent], [typeof i2.CommonModule, typeof i3.FsSkeletonModule, typeof i4.FsLabelModule, typeof i5.FsHtmlRendererModule], [typeof i1.FsHtmlEditorComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlEditorModule>;
|
|
15
15
|
}
|
|
16
16
|
export declare function FsHtmlEditorConfigFactory(config: FsHtmlEditorConfig): {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/app/{plugins → modules/html-editor/plugins}/configs/screen-record-plugin.config.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/html-renderer/html-renderer.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class FsHtmlRendererModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlRendererModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlRendererModule, [typeof i1.FsHtmlRendererComponent], [typeof i2.CommonModule], [typeof i1.FsHtmlRendererComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlRendererModule>;
|
|
8
|
+
}
|
|
@@ -844,6 +844,7 @@
|
|
|
844
844
|
});
|
|
845
845
|
};
|
|
846
846
|
FsHtmlEditorComponent.prototype._createOptions = function () {
|
|
847
|
+
var _a, _b;
|
|
847
848
|
var config = this._createConfig();
|
|
848
849
|
return lodashEs.merge(
|
|
849
850
|
// For some reason editor store somewhere pointer on default config object and dublicate options each time on init
|
|
@@ -862,6 +863,8 @@
|
|
|
862
863
|
quickInsertEnabled: false,
|
|
863
864
|
paragraphDefaultSelection: 'Format',
|
|
864
865
|
videoUpload: false,
|
|
866
|
+
imagePaste: !!((_a = config.image) === null || _a === void 0 ? void 0 : _a.upload),
|
|
867
|
+
imageUpload: !!((_b = config.image) === null || _b === void 0 ? void 0 : _b.upload),
|
|
865
868
|
paragraphFormat: {
|
|
866
869
|
N: 'Normal',
|
|
867
870
|
H1: 'Heading 1',
|
|
@@ -1091,6 +1094,31 @@
|
|
|
1091
1094
|
type: i0.Input
|
|
1092
1095
|
}] } });
|
|
1093
1096
|
|
|
1097
|
+
var FsHtmlRendererModule = /** @class */ (function () {
|
|
1098
|
+
function FsHtmlRendererModule() {
|
|
1099
|
+
}
|
|
1100
|
+
return FsHtmlRendererModule;
|
|
1101
|
+
}());
|
|
1102
|
+
FsHtmlRendererModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1103
|
+
FsHtmlRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, declarations: [FsHtmlRendererComponent], imports: [i4.CommonModule], exports: [FsHtmlRendererComponent] });
|
|
1104
|
+
FsHtmlRendererModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, imports: [[
|
|
1105
|
+
i4.CommonModule,
|
|
1106
|
+
]] });
|
|
1107
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlRendererModule, decorators: [{
|
|
1108
|
+
type: i0.NgModule,
|
|
1109
|
+
args: [{
|
|
1110
|
+
imports: [
|
|
1111
|
+
i4.CommonModule,
|
|
1112
|
+
],
|
|
1113
|
+
exports: [
|
|
1114
|
+
FsHtmlRendererComponent,
|
|
1115
|
+
],
|
|
1116
|
+
declarations: [
|
|
1117
|
+
FsHtmlRendererComponent,
|
|
1118
|
+
],
|
|
1119
|
+
}]
|
|
1120
|
+
}] });
|
|
1121
|
+
|
|
1094
1122
|
var FsHtmlEditorModule = /** @class */ (function () {
|
|
1095
1123
|
function FsHtmlEditorModule() {
|
|
1096
1124
|
}
|
|
@@ -1111,15 +1139,15 @@
|
|
|
1111
1139
|
return FsHtmlEditorModule;
|
|
1112
1140
|
}());
|
|
1113
1141
|
FsHtmlEditorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1114
|
-
FsHtmlEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, declarations: [FsHtmlEditorComponent,
|
|
1115
|
-
FsHtmlRendererComponent], imports: [i4.CommonModule,
|
|
1142
|
+
FsHtmlEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, declarations: [FsHtmlEditorComponent], imports: [i4.CommonModule,
|
|
1116
1143
|
i5.FsSkeletonModule,
|
|
1117
|
-
i2.FsLabelModule
|
|
1118
|
-
|
|
1144
|
+
i2.FsLabelModule,
|
|
1145
|
+
FsHtmlRendererModule], exports: [FsHtmlEditorComponent] });
|
|
1119
1146
|
FsHtmlEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, imports: [[
|
|
1120
1147
|
i4.CommonModule,
|
|
1121
1148
|
i5.FsSkeletonModule,
|
|
1122
1149
|
i2.FsLabelModule,
|
|
1150
|
+
FsHtmlRendererModule,
|
|
1123
1151
|
]] });
|
|
1124
1152
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsHtmlEditorModule, decorators: [{
|
|
1125
1153
|
type: i0.NgModule,
|
|
@@ -1128,14 +1156,13 @@
|
|
|
1128
1156
|
i4.CommonModule,
|
|
1129
1157
|
i5.FsSkeletonModule,
|
|
1130
1158
|
i2.FsLabelModule,
|
|
1159
|
+
FsHtmlRendererModule,
|
|
1131
1160
|
],
|
|
1132
1161
|
exports: [
|
|
1133
1162
|
FsHtmlEditorComponent,
|
|
1134
|
-
FsHtmlRendererComponent,
|
|
1135
1163
|
],
|
|
1136
1164
|
declarations: [
|
|
1137
1165
|
FsHtmlEditorComponent,
|
|
1138
|
-
FsHtmlRendererComponent,
|
|
1139
1166
|
],
|
|
1140
1167
|
}]
|
|
1141
1168
|
}] });
|
|
@@ -1458,6 +1485,22 @@
|
|
|
1458
1485
|
return ScreenRecordPlugin;
|
|
1459
1486
|
}(Plugin));
|
|
1460
1487
|
|
|
1488
|
+
var RealtimePlugin = /** @class */ (function (_super) {
|
|
1489
|
+
__extends(RealtimePlugin, _super);
|
|
1490
|
+
function RealtimePlugin(config) {
|
|
1491
|
+
if (config === void 0) { config = { name: 'realtime' }; }
|
|
1492
|
+
var _this = _super.call(this) || this;
|
|
1493
|
+
_this.config = config;
|
|
1494
|
+
_this.config = Object.assign(Object.assign({}, config), { name: 'realtime' });
|
|
1495
|
+
return _this;
|
|
1496
|
+
}
|
|
1497
|
+
RealtimePlugin.prototype.initialize = function () {
|
|
1498
|
+
this.editor.events.on('click', function (e) {
|
|
1499
|
+
}, false);
|
|
1500
|
+
};
|
|
1501
|
+
return RealtimePlugin;
|
|
1502
|
+
}(Plugin));
|
|
1503
|
+
|
|
1461
1504
|
/**
|
|
1462
1505
|
* Generated bundle index. Do not edit.
|
|
1463
1506
|
*/
|
|
@@ -1468,8 +1511,10 @@
|
|
|
1468
1511
|
exports.FsHtmlEditorComponent = FsHtmlEditorComponent;
|
|
1469
1512
|
exports.FsHtmlEditorModule = FsHtmlEditorModule;
|
|
1470
1513
|
exports.FsHtmlRendererComponent = FsHtmlRendererComponent;
|
|
1514
|
+
exports.FsHtmlRendererModule = FsHtmlRendererModule;
|
|
1471
1515
|
exports.MentionPlugin = MentionPlugin;
|
|
1472
1516
|
exports.ParagraphButtons = ParagraphButtons;
|
|
1517
|
+
exports.RealtimePlugin = RealtimePlugin;
|
|
1473
1518
|
exports.RichButtons = RichButtons;
|
|
1474
1519
|
exports.ScreenRecordPlugin = ScreenRecordPlugin;
|
|
1475
1520
|
exports.TextButtons = TextButtons;
|