cherry-markdown 0.5.16 → 0.5.17
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/CHANGELOG.md +33 -26
- package/dist/cherry-markdown.core.js +1 -1
- package/dist/cherry-markdown.engine.core.js +1 -1
- package/dist/cherry-markdown.esm.js +1 -1
- package/dist/cherry-markdown.js +4 -2
- package/dist/cherry-markdown.js.map +1 -1
- package/dist/cherry-markdown.min.js +1 -1
- package/dist/fonts/ch-icon.eot +0 -0
- package/dist/fonts/ch-icon.ttf +0 -0
- package/dist/fonts/ch-icon.woff +0 -0
- package/dist/fonts/ch-icon.woff2 +0 -0
- package/dist/types/toolbars/hooks/Insert.d.ts +2 -1
- package/package.json +1 -1
- package/src/toolbars/hooks/Insert.js +3 -2
package/dist/cherry-markdown.js
CHANGED
|
@@ -49181,6 +49181,7 @@
|
|
|
49181
49181
|
/**
|
|
49182
49182
|
* 上传文件的逻辑
|
|
49183
49183
|
* @param {string} type 上传文件的类型
|
|
49184
|
+
* @param {string} [_accept] TODO: 限定可选择的文件类型,接收 mime type 或后缀名字符串(以逗号分隔)
|
|
49184
49185
|
*/
|
|
49185
49186
|
|
|
49186
49187
|
}, {
|
|
@@ -49189,9 +49190,10 @@
|
|
|
49189
49190
|
var _this2 = this;
|
|
49190
49191
|
|
|
49191
49192
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image';
|
|
49193
|
+
|
|
49192
49194
|
// type为上传文件类型 image|video|audio|pdf|word
|
|
49193
49195
|
var input = document.createElement('input');
|
|
49194
|
-
input.type =
|
|
49196
|
+
input.type = 'file';
|
|
49195
49197
|
input.id = 'fileUpload';
|
|
49196
49198
|
input.value = '';
|
|
49197
49199
|
input.style.display = 'none'; // document.body.appendChild(input);
|
|
@@ -82093,7 +82095,7 @@
|
|
|
82093
82095
|
});
|
|
82094
82096
|
}
|
|
82095
82097
|
|
|
82096
|
-
var VERSION = "0.5.
|
|
82098
|
+
var VERSION = "0.5.17-c633202f";
|
|
82097
82099
|
var CherryStatic = /*#__PURE__*/function () {
|
|
82098
82100
|
function CherryStatic() {
|
|
82099
82101
|
_classCallCheck(this, CherryStatic);
|