Php CKeditor文件上载错误上载
我在我的页面上使用了CKeditor,但我的图片上传有问题。我正在尝试使用从网站上传的图像。但我是作为文件上传者而不是另一个 我的代码是:Php CKeditor文件上载错误上载,php,html,ckeditor,Php,Html,Ckeditor,我在我的页面上使用了CKeditor,但我的图片上传有问题。我正在尝试使用从网站上传的图像。但我是作为文件上传者而不是另一个 我的代码是: CKEDITOR.editorConfig = function( config ) { config.filebrowserUploadUrl = '/uploader/upload.php'; config.toolbar = [ { name: 'insert', items: ['Smiley'] },
CKEDITOR.editorConfig = function( config ) {
config.filebrowserUploadUrl = '/uploader/upload.php';
config.toolbar = [
{ name: 'insert', items: ['Smiley'] },
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline' ] },
{ name: 'links', items: [ 'Image' ] }
];
config.autoParagraph = false;
config.allowedContent = true;
config.fullPage = false;
config.extraAllowedContent = 'p(*)[*]{*};span(*)[*]{*};div(*)[*]{*};li(*)[*]{*};ul(*)[*]{*}';
config.extraPlugins = 'youtube,ckawesome';
config.fontawesomePath = 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css';
config.contentsCss = ['https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css','https://app.gratiswebshopbeginnen.nl/assets/bootstrap/css/bootstrap.min.css'];
// Se the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';
// Make dialogs simpler.
//config.removeDialogTabs = 'image:advanced;link:advanced';
};
php文件中的脚本:
<script type="text/javascript" src="/assets/plugins/ckeditor/ckeditor.js"></script>
<script>CKEDITOR.dtd.$removeEmpty['span'] = false; CKEDITOR.dtd.$removeEmpty['i'] = false;</script>
<script>CKEDITOR.env.isCompatible = true;</script>
<script type="text/javascript">
CKEDITOR.replace( 'editor1',
{
customConfig: '/assets/plugins/ckeditor/config.js',
filebrowserBrowseUrl : '/assets/plugins/ckeditor/plugins/browser/browse.php',
enterMode : CKEDITOR.ENTER_BR
});
</script>
CKEDITOR.dtd.$removempty['span']=false;CKEDITOR.dtd.$removempty['i']=false;
CKEDITOR.env.isCompatible=true;
CKEDITOR.replace('editor1',
{
customConfig:“/assets/plugins/ckeditor/config.js”,
filebrowserBrowseUrl:“/assets/plugins/ckeditor/plugins/browser/browse.php”,
输入模式:CKEDITOR.ENTER\u BR
});
从您所附的图像中,您似乎找到了正确的CKEditor插件。唯一的区别是语言,图片中有更多“可见”选项卡,因为只有在ckeditor/config.js文件中设置了特定设置后,某些选项卡才可用。请参见UploadImage插件演示页面中的此屏幕截图:
那么,您能更具体地说明您的问题吗?使用我的github存储库中的插件