@wangeditor-next/plugin-formula 0.0.12-beta.2 → 0.0.12-beta.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.
- package/dist/css/style.css +2 -3
- package/dist/index.js +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/css/style.css
CHANGED
package/dist/index.js
CHANGED
@@ -104,6 +104,8 @@
|
|
104
104
|
Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
|
105
105
|
}());
|
106
106
|
|
107
|
+
var katexStyleContent = undefined;
|
108
|
+
|
107
109
|
/**
|
108
110
|
* @description 注册自定义 elem
|
109
111
|
* @author wangfupeng
|
@@ -114,6 +116,9 @@
|
|
114
116
|
var _this = _super.call(this) || this;
|
115
117
|
var shadow = _this.attachShadow({ mode: 'open' });
|
116
118
|
var document = shadow.ownerDocument;
|
119
|
+
var style = document.createElement('style');
|
120
|
+
style.innerHTML = katexStyleContent; // 加载 css 文本
|
121
|
+
shadow.appendChild(style);
|
117
122
|
var span = document.createElement('span');
|
118
123
|
span.style.display = 'inline-block';
|
119
124
|
shadow.appendChild(span);
|
package/dist/index.mjs
CHANGED
@@ -102,6 +102,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
102
102
|
Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
|
103
103
|
}());
|
104
104
|
|
105
|
+
var katexStyleContent = undefined;
|
106
|
+
|
105
107
|
/**
|
106
108
|
* @description 注册自定义 elem
|
107
109
|
* @author wangfupeng
|
@@ -112,6 +114,9 @@ var WangEditorFormulaCard = /** @class */ (function (_super) {
|
|
112
114
|
var _this = _super.call(this) || this;
|
113
115
|
var shadow = _this.attachShadow({ mode: 'open' });
|
114
116
|
var document = shadow.ownerDocument;
|
117
|
+
var style = document.createElement('style');
|
118
|
+
style.innerHTML = katexStyleContent; // 加载 css 文本
|
119
|
+
shadow.appendChild(style);
|
115
120
|
var span = document.createElement('span');
|
116
121
|
span.style.display = 'inline-block';
|
117
122
|
shadow.appendChild(span);
|