@wangeditor-next/plugin-formula 0.0.12-beta.1 → 0.0.12-beta.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/index.js CHANGED
@@ -104,8 +104,6 @@
104
104
  Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
105
105
  }());
106
106
 
107
- var katexStyleContent = undefined;
108
-
109
107
  /**
110
108
  * @description 注册自定义 elem
111
109
  * @author wangfupeng
@@ -116,9 +114,6 @@
116
114
  var _this = _super.call(this) || this;
117
115
  var shadow = _this.attachShadow({ mode: 'open' });
118
116
  var document = shadow.ownerDocument;
119
- var style = document.createElement('style');
120
- style.innerHTML = katexStyleContent; // 加载 css 文本
121
- shadow.appendChild(style);
122
117
  var span = document.createElement('span');
123
118
  span.style.display = 'inline-block';
124
119
  shadow.appendChild(span);
@@ -2546,6 +2541,7 @@
2546
2541
  }, null);
2547
2542
  // 构建容器 vnode
2548
2543
  var containerVnode = snabbdom.h('div', {
2544
+ className: 'w-e-textarea-formula-container',
2549
2545
  props: {
2550
2546
  contentEditable: false, // 不可编辑
2551
2547
  },
package/dist/index.mjs CHANGED
@@ -102,8 +102,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
102
102
  Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
103
103
  }());
104
104
 
105
- var katexStyleContent = undefined;
106
-
107
105
  /**
108
106
  * @description 注册自定义 elem
109
107
  * @author wangfupeng
@@ -114,9 +112,6 @@ var WangEditorFormulaCard = /** @class */ (function (_super) {
114
112
  var _this = _super.call(this) || this;
115
113
  var shadow = _this.attachShadow({ mode: 'open' });
116
114
  var document = shadow.ownerDocument;
117
- var style = document.createElement('style');
118
- style.innerHTML = katexStyleContent; // 加载 css 文本
119
- shadow.appendChild(style);
120
115
  var span = document.createElement('span');
121
116
  span.style.display = 'inline-block';
122
117
  shadow.appendChild(span);
@@ -1191,6 +1186,7 @@ function renderFormula(elem, children, editor) {
1191
1186
  }, null);
1192
1187
  // 构建容器 vnode
1193
1188
  var containerVnode = h('div', {
1189
+ className: 'w-e-textarea-formula-container',
1194
1190
  props: {
1195
1191
  contentEditable: false, // 不可编辑
1196
1192
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangeditor-next/plugin-formula",
3
- "version": "0.0.12-beta.1",
3
+ "version": "0.0.12-beta.2",
4
4
  "description": "wangEditor next formula 公式",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
6
  "type": "module",