roosterjs 8.21.0 → 8.21.1-dev.2
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/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.js +19612 -21335
- package/dist/rooster-amd.js.map +1 -1
- package/dist/rooster-min.js +1 -1
- package/dist/rooster-min.js.map +1 -1
- package/dist/rooster.js +19612 -21335
- package/dist/rooster.js.map +1 -1
- package/lib/createEditor.d.ts +10 -10
- package/lib/createEditor.js +31 -31
- package/lib/index.d.ts +7 -7
- package/lib/index.js +21 -21
- package/lib-amd/createEditor.d.ts +10 -10
- package/lib-amd/createEditor.js +30 -30
- package/lib-amd/index.d.ts +7 -7
- package/lib-amd/index.js +22 -22
- package/package.json +6 -18
- package/test/createEditorTest.d.ts +1 -1
- package/test/createEditorTest.js +56 -56
- package/test/createEditorTest.js.map +1 -1
- package/tsconfig.child.tsbuildinfo +1 -1
- package/dist/rooster-amd.d.ts +0 -7582
- package/dist/rooster.d.ts +0 -7584
- package/lib-const-enum/createEditor.d.ts +0 -10
- package/lib-const-enum/createEditor.js +0 -32
- package/lib-const-enum/createEditor.js.map +0 -1
- package/lib-const-enum/index.d.ts +0 -7
- package/lib-const-enum/index.js +0 -22
- package/lib-const-enum/index.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { EditorPlugin, IEditor } from 'roosterjs-editor-types';
|
|
2
|
-
/**
|
|
3
|
-
* Create an editor instance with most common options
|
|
4
|
-
* @param contentDiv The html div element needed for creating the editor
|
|
5
|
-
* @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are
|
|
6
|
-
* ContentEdit, HyperLink and Paste, user don't need to add those.
|
|
7
|
-
* @param initialContent The initial content to show in editor. It can't be removed by undo, user need to manually remove it if needed.
|
|
8
|
-
* @returns The editor instance
|
|
9
|
-
*/
|
|
10
|
-
export default function createEditor(contentDiv: HTMLDivElement, additionalPlugins?: EditorPlugin[], initialContent?: string): IEditor;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var roosterjs_editor_core_1 = require("roosterjs-editor-core");
|
|
4
|
-
var roosterjs_color_utils_1 = require("roosterjs-color-utils");
|
|
5
|
-
var roosterjs_editor_plugins_1 = require("roosterjs-editor-plugins");
|
|
6
|
-
/**
|
|
7
|
-
* Create an editor instance with most common options
|
|
8
|
-
* @param contentDiv The html div element needed for creating the editor
|
|
9
|
-
* @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are
|
|
10
|
-
* ContentEdit, HyperLink and Paste, user don't need to add those.
|
|
11
|
-
* @param initialContent The initial content to show in editor. It can't be removed by undo, user need to manually remove it if needed.
|
|
12
|
-
* @returns The editor instance
|
|
13
|
-
*/
|
|
14
|
-
function createEditor(contentDiv, additionalPlugins, initialContent) {
|
|
15
|
-
var plugins = [new roosterjs_editor_plugins_1.HyperLink(), new roosterjs_editor_plugins_1.Paste(), new roosterjs_editor_plugins_1.ContentEdit()];
|
|
16
|
-
if (additionalPlugins) {
|
|
17
|
-
plugins = plugins.concat(additionalPlugins);
|
|
18
|
-
}
|
|
19
|
-
var options = {
|
|
20
|
-
plugins: plugins,
|
|
21
|
-
initialContent: initialContent,
|
|
22
|
-
getDarkColor: roosterjs_color_utils_1.getDarkColor,
|
|
23
|
-
defaultFormat: {
|
|
24
|
-
fontFamily: 'Calibri,Arial,Helvetica,sans-serif',
|
|
25
|
-
fontSize: '11pt',
|
|
26
|
-
textColor: '#000000',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
return new roosterjs_editor_core_1.Editor(contentDiv, options);
|
|
30
|
-
}
|
|
31
|
-
exports.default = createEditor;
|
|
32
|
-
//# sourceMappingURL=createEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../temp/roosterjs/lib-const-enum/createEditor.ts"],"names":[],"mappings":";;AAAA,+DAA+C;AAE/C,+DAAqD;AACrD,qEAAyE;AAEzE;;;;;;;GAOG;AACH,SAAwB,YAAY,CAChC,UAA0B,EAC1B,iBAAkC,EAClC,cAAuB;IAEvB,IAAI,OAAO,GAAmB,CAAC,IAAI,oCAAS,EAAE,EAAE,IAAI,gCAAK,EAAE,EAAE,IAAI,sCAAW,EAAE,CAAC,CAAC;IAEhF,IAAI,iBAAiB,EAAE;QACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;KAC/C;IAED,IAAI,OAAO,GAAkB;QACzB,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE,cAAc;QAC9B,YAAY,EAAE,oCAAY;QAC1B,aAAa,EAAE;YACX,UAAU,EAAE,oCAAoC;YAChD,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,SAAS;SACvB;KACJ,CAAC;IACF,OAAO,IAAI,8BAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAtBD,+BAsBC","sourcesContent":["import { Editor } from 'roosterjs-editor-core';\r\nimport { EditorOptions, EditorPlugin, IEditor } from 'roosterjs-editor-types';\r\nimport { getDarkColor } from 'roosterjs-color-utils';\r\nimport { ContentEdit, HyperLink, Paste } from 'roosterjs-editor-plugins';\r\n\r\n/**\r\n * Create an editor instance with most common options\r\n * @param contentDiv The html div element needed for creating the editor\r\n * @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are\r\n * ContentEdit, HyperLink and Paste, user don't need to add those.\r\n * @param initialContent The initial content to show in editor. It can't be removed by undo, user need to manually remove it if needed.\r\n * @returns The editor instance\r\n */\r\nexport default function createEditor(\r\n contentDiv: HTMLDivElement,\r\n additionalPlugins?: EditorPlugin[],\r\n initialContent?: string\r\n): IEditor {\r\n let plugins: EditorPlugin[] = [new HyperLink(), new Paste(), new ContentEdit()];\r\n\r\n if (additionalPlugins) {\r\n plugins = plugins.concat(additionalPlugins);\r\n }\r\n\r\n let options: EditorOptions = {\r\n plugins: plugins,\r\n initialContent: initialContent,\r\n getDarkColor: getDarkColor,\r\n defaultFormat: {\r\n fontFamily: 'Calibri,Arial,Helvetica,sans-serif',\r\n fontSize: '11pt',\r\n textColor: '#000000',\r\n },\r\n };\r\n return new Editor(contentDiv, options);\r\n}\r\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as createEditor } from './createEditor';
|
|
2
|
-
export * from 'roosterjs-editor-types';
|
|
3
|
-
export * from 'roosterjs-editor-dom';
|
|
4
|
-
export * from 'roosterjs-editor-core';
|
|
5
|
-
export * from 'roosterjs-editor-api';
|
|
6
|
-
export * from 'roosterjs-editor-plugins';
|
|
7
|
-
export * from 'roosterjs-color-utils';
|
package/lib-const-enum/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.createEditor = void 0;
|
|
14
|
-
var createEditor_1 = require("./createEditor");
|
|
15
|
-
Object.defineProperty(exports, "createEditor", { enumerable: true, get: function () { return createEditor_1.default; } });
|
|
16
|
-
__exportStar(require("roosterjs-editor-types"), exports);
|
|
17
|
-
__exportStar(require("roosterjs-editor-dom"), exports);
|
|
18
|
-
__exportStar(require("roosterjs-editor-core"), exports);
|
|
19
|
-
__exportStar(require("roosterjs-editor-api"), exports);
|
|
20
|
-
__exportStar(require("roosterjs-editor-plugins"), exports);
|
|
21
|
-
__exportStar(require("roosterjs-color-utils"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../temp/roosterjs/lib-const-enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAyD;AAAhD,4GAAA,OAAO,OAAgB;AAChC,yDAAuC;AACvC,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,2DAAyC;AACzC,wDAAsC","sourcesContent":["export { default as createEditor } from './createEditor';\r\nexport * from 'roosterjs-editor-types';\r\nexport * from 'roosterjs-editor-dom';\r\nexport * from 'roosterjs-editor-core';\r\nexport * from 'roosterjs-editor-api';\r\nexport * from 'roosterjs-editor-plugins';\r\nexport * from 'roosterjs-color-utils';\r\n"]}
|