Php 用于CKEDITOR的插件HTML5视频';没有按钮上传视频吗?
带有插件HTML5视频的Ckeditor 4.1没有按钮上传视频吗 装置Php 用于CKEDITOR的插件HTML5视频';没有按钮上传视频吗?,php,ckeditor,html5-video,Php,Ckeditor,Html5 Video,带有插件HTML5视频的Ckeditor 4.1没有按钮上传视频吗 装置 将文件内容解压缩到CKEditor的“plugins”文件夹中 在CKEditor配置文件(config.js)中添加以下代码:config.extraPlugins='video' 在工具栏配置中,在希望按钮显示的位置添加新的“视频”项 我有一个问题HTML5视频属性没有一个按钮上传相同的图片 /** * @license Copyright (c) 2003-2013, CKSource - Frederico Kn
/**
* @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>
CKEDITOR.env.isCompatible=true;
CKEDITOR.replace('con_detail'{
工具栏:[
{name:'document',组:['mode','document','doctools'],项:['Source','-','Templates']},
{name:'clipboard',组:['clipboard','undo'],项:['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',组:['basicstyles','cleanup'],项:['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat'],
{名称:'段落',分组:['list',indent',blocks','align','bidi'],项目:['NumberedList','BulletedList','-','Outdent','indent','-','Blockquote','CreateDiv','-','JustifyLeft','justifCenter','justifRight','justifBlock','-','BidiRtl','Language'},
{name:'links',项:['Link','Unlink','Anchor']},
{name:'insert',项:['Image','Flash','Video','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe']},
]
});
添加此按钮以显示服务器按钮:
CKEDITOR.replace( 'editor1',{
UploadUrl : 'upload.php',
filebrowserUploadUrl : 'upload.php',
filebrowserBrowseUrl : 'upload.php',
});