Google翻译无法在textarea上使用ckeditor

时间:2019-05-21 10:22:27

标签: ckeditor textarea google-translation-api

我正在尝试在textarea上实现CKEditor,此外还包括Google翻译。避免翻译代码时,CKEditor可以完美地处理文本区域,否则,CKEditor和google翻译无法正常工作。

CKEDITOR.replace( 'ann_matter_ml',
    {
        toolbar :
        [
            //['Source'],
            ['Undo','Redo','Bold','Italic','Underline','StrikeThrough'],
            ['Cut','Copy','Paste','PasteText','PasteWord'],
            ['Style'],
            ['Table','Rule','SpecialChar'], ///['Table','Image','Rule','SpecialChar'],
            ['Link','Unlink','Anchor','JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] //'NumberedList','BulletedList',
        ],
        height: 200,
        width: 890
    });

0 个答案:

没有答案