<commit_before><commit_msg>fix: 添加 custom alert 的 html 文档<commit_after><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>wangEditor example</title>
    <style>
    </style>
</head>

<body>
    <p>wangEditor demo</p>
    <div id="div1">
        <p>欢迎使用 <b>wangEditor</b> 富文本编辑器</p>
        <p><img src="http://www.wangeditor.com/imgs/logo.jpeg"/></p>
    </div>

    <script src="../dist/wangEditor.js"></script>
    <script>
        // 改为使用var声明，才能在window对象上获取到编辑器实例，方便e2e测试
        var E = window.wangEditor
        var editor = new E('#div1')

        editor.config.customAlert = function (str, code, err) {
            console.log('customAlert', str, code, err)
            alert(`str:${str}, code:${code}, err: ${err}`)
        }

        editor.config.linkCheck = () => {
            return false
        }

        editor.create()
    </script>
</body>

</html>
{'fraction_non_alphanumeric': 0.1822863027806385, 'fraction_numerical': 0.006179196704428424, 'mean_word_length': 2.4714285714285715, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7118922', 'n_tokens_mistral': 371, 'n_tokens_neox': 371, 'n_words': 64}