用于CKEDITOR的插件HTML5视频没有按钮上传视频?

时间:2015-04-21 17:54:48

标签: php ckeditor html5-video

带有插件HTML5视频的Ckeditor 4.1没有按钮上传视频吗?

安装

  
      
  1. 将文件内容解压缩到"插件" CKEditor的文件夹。
  2.   
  3. 在CKEditor配置文件(config.js)中添加以下代码:config.extraPlugins =' video';
  4.   
  5. 在工具栏配置中,添加一个新的视频'您希望按钮显示的位置的项目。
  6.   

我有一个问题HTML5视频属性没有按钮上传相同的图片。

/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';

    config.extraPlugins = 'image';
    config.extraPlugins = 'video';
    config.allowedContent = true;
    config.filebrowserUploadUrl = '../admin/ckupload.php';
};

工具栏菜单

<script>
    CKEDITOR.env.isCompatible = true;
    CKEDITOR.replace( 'con_detail', {
    toolbar: [                                                                  
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source', '-', 'Templates' ] },
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
    { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
    { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
    { name: 'tools', items: [ 'Maximize', 'ShowBlocks' ] },
    '/',
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language' ] },
    { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
    { name: 'insert', items: [ 'Image', 'Flash', 'Video', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe' ] },
    ]

    });

</script>

enter image description here

1 个答案:

答案 0 :(得分:-1)

将此添加到show server-button:

CKEDITOR.replace( 'editor1',{

UploadUrl : 'upload.php',
filebrowserUploadUrl : 'upload.php',
filebrowserBrowseUrl : 'upload.php',

});