可以直接使用jsdelivr来加载编辑器代码(可以自行替换所需的版本号)
https://cdn.jsdelivr.net/npm/[email protected]/client/src/index.js
<script src='https://cdn.jsdelivr.net/npm/[email protected]/client/src/index.js' charset="utf-8"></script>
<script>
const {
EditorUser,
Editor,
createEditorPromise,
assert,
BlockElement,
blockUtils,
containerUtils,
CommandItemData,
MenuItem,
domUtils,
getEditor,
AuthMessage,
OnProgress,
EditorOptions,
SelectionDetail,
EditorDoc,
} = window.WizEditor;
</script>