@textbus/platform-browser 3.4.1 → 3.4.3
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.
@@ -23,8 +23,7 @@ export interface SlotParser {
|
|
23
23
|
* @param slotContentHostElement 插槽的内容节点
|
24
24
|
*
|
25
25
|
* 注意:当不传入内容节点时,Textbus 会把根节点当成内容节点
|
26
|
-
*/
|
27
|
-
<T extends Slot>(childSlot: T, slotRootElement: HTMLElement, slotContentHostElement?: HTMLElement): T;
|
26
|
+
*/ <T extends Slot>(childSlot: T, slotRootElement: HTMLElement, slotContentHostElement?: HTMLElement): T;
|
28
27
|
}
|
29
28
|
/**
|
30
29
|
* 组件加载器
|
package/bundles/index.esm.js
CHANGED
@@ -1281,7 +1281,7 @@ let Parser = Parser_1 = class Parser {
|
|
1281
1281
|
}
|
1282
1282
|
else if (el.nodeType === Node.TEXT_NODE) {
|
1283
1283
|
const textContent = el.textContent;
|
1284
|
-
if (/^\s*[\r\n]+\s*$/.test(textContent)) {
|
1284
|
+
if (/^\s*[\r\n\u200b]+\s*$/.test(textContent)) {
|
1285
1285
|
return;
|
1286
1286
|
}
|
1287
1287
|
slot.insert(textContent);
|
package/bundles/index.js
CHANGED
@@ -1283,7 +1283,7 @@ exports.Parser = Parser_1 = class Parser {
|
|
1283
1283
|
}
|
1284
1284
|
else if (el.nodeType === Node.TEXT_NODE) {
|
1285
1285
|
const textContent = el.textContent;
|
1286
|
-
if (/^\s*[\r\n]+\s*$/.test(textContent)) {
|
1286
|
+
if (/^\s*[\r\n\u200b]+\s*$/.test(textContent)) {
|
1287
1287
|
return;
|
1288
1288
|
}
|
1289
1289
|
slot.insert(textContent);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/platform-browser",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.3",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/di": "^1.1.5",
|
29
29
|
"@tanbo/stream": "^1.2.0",
|
30
|
-
"@textbus/core": "^3.4.
|
30
|
+
"@textbus/core": "^3.4.3",
|
31
31
|
"reflect-metadata": "^0.1.13"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "2d1034b5244ab8d41ec293bbcaeca4ea16c05737"
|
52
52
|
}
|