Javascript 贡品已经绑定到身体所见即所得编辑器?

Javascript 贡品已经绑定到身体所见即所得编辑器?,javascript,jquery,wysiwyg,froala,Javascript,Jquery,Wysiwyg,Froala,使用 错误:-贡.js:159贡已绑定到正文 当我使用froala fullPage时。。 我也阅读了文档,没有地方提到这个问题。只有在添加fullpage选项并将其设置为true时,才会出现错误。 这无助于我找到任何解决方案 致敬 无贡 var贡品=新贡品({ 价值观:[ {键:'Phil',值:'pheartman'}, {key:'Gordon',value:'gramsey'}, {键:'Jacob',值:'Jacob'}, {键:'Ethan',值:'Ethan'}, {键:'Em

使用

错误:-贡.js:159贡已绑定到正文

当我使用froala fullPage时。。 我也阅读了文档,没有地方提到这个问题。只有在添加fullpage选项并将其设置为true时,才会出现错误。 这无助于我找到任何解决方案


致敬
无贡
var贡品=新贡品({
价值观:[
{键:'Phil',值:'pheartman'},
{key:'Gordon',value:'gramsey'},
{键:'Jacob',值:'Jacob'},
{键:'Ethan',值:'Ethan'},
{键:'Emma',值:'Emma'},
{键:'Isabella',值:'Isabella'}
],
选择模板:功能(项目){
返回“”+item.original.key+“”;
}
})
新的FroalaEditor(“#with贡”{
整页:对,
活动:{
已初始化:函数(){
var编辑器=这个;
致敬。附加(editor.el)
编辑器.events.on('keydown',函数(e){
if(e.which==FroalaEditor.KEYCODE.ENTER&&attribute.isActive){
返回false;
}
},对);
}
}
});
新的FroalaEditor(“#不带贡物”{
全页:错误,
活动:{
已初始化:函数(){
var编辑器=这个;
致敬。附加(editor.el)
编辑器.events.on('keydown',函数(e){
if(e.which==FroalaEditor.KEYCODE.ENTER&&attribute.isActive){
返回false;
}
},对);
}
}
});
   <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tributejs@3.5.3/dist/tribute.js"></script>
<script src="https://cdn.jsdelivr.net/npm/froala-editor@3.1.0/js/froala_editor.pkgd.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/froala-editor@3.1.0/css/froala_editor.pkgd.min.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/tributejs@3.5.3/dist/tribute.css" rel="stylesheet"/>
<h4> with Tribute </h4>
<div id="Not working with Tribute"></div>
<h4> withoutTribute </h4>
<div id="Working with Tribute"></div>
<script>

    var tribute = new Tribute({
        values: [
            { key: 'Phil', value: 'pheartman' },
            { key: 'Gordon', value: 'gramsey' },
            { key: 'Jacob', value: 'jacob' },
            { key: 'Ethan', value: 'ethan' },
            { key: 'Emma', value: 'emma' },
            { key: 'Isabella', value: 'isabella' }
        ],
        selectTemplate: function(item) {
            return '<span class="fr-deletaable fr-tribute">' + item.original.key + '</a></span>';
        }
    })

    new FroalaEditor('#withTribute', {
        fullPage: true,
        events: {
            initialized: function() {
                var editor = this;

                tribute.attach(editor.el)

                editor.events.on('keydown', function(e) {
                    if (e.which == FroalaEditor.KEYCODE.ENTER && tribute.isActive) {
                        return false;
                    }
                }, true);
            }
        }
    });

    new FroalaEditor('#withoutTribute', {
        fullPage: false,
        events: {
            initialized: function() {
                var editor = this;

                tribute.attach(editor.el)

                editor.events.on('keydown', function(e) {
                    if (e.which == FroalaEditor.KEYCODE.ENTER && tribute.isActive) {
                        return false;
                    }
                }, true);
            }
        }
    });

</script>