Laravel 5 Laravel 5.5和CKEditor选项

Laravel 5 Laravel 5.5和CKEditor选项,laravel-5,ckeditor,Laravel 5,Ckeditor,我想在CKEditor中使用一些可选的附加功能,特别是视频嵌入 我已将整个内容下载到公共区域的ckeditor,在插件目录中有视频 我从CKeditor的CDN开始: <script src="//cdn.ckeditor.com/4.7.3/full-all/ckeditor.js"></script> 然后我为视频插件添加了选项: <script> CKEDITOR.plugins.addExternal( 'video', '{{ public_

我想在CKEditor中使用一些可选的附加功能,特别是视频嵌入

我已将整个内容下载到公共区域的ckeditor,在插件目录中有视频

我从CKeditor的CDN开始:

<script src="//cdn.ckeditor.com/4.7.3/full-all/ckeditor.js"></script>

然后我为视频插件添加了选项:

<script>
 CKEDITOR.plugins.addExternal( 'video', '{{ public_path('\ckeditor\plugins\video\ ') }}', 'video.js' );
</script>

addExternal('video','{public_path('\CKEDITOR\plugins\video\')}','video.js');
(video.js实际上位于我也尝试过的子目录对话框中)

我可以看到我的页面上出现的CKEditor,但没有视频按钮


有人有什么想法吗?

首先,你需要将插件档案的内容上传到网站上的任何文件夹中。不过,给文件夹命名是一个好主意,这样您就知道它包含CKEditor插件。为了我们的示例,我们将其命名为ckeditor/plugins。然后,您应该以以下路径结束:

ckeditor/plugins/jsplus_image_editor
现在,我们需要告诉CKEditor从上面的文件夹加载插件。在CKEditor替换标准控件的行上方的HTML代码中添加以下代码:

<textarea name="editor1"></textarea>
...
<script>
CKEDITOR.plugins.addExternal( 'yourpluginname', 
'/ckeditor/plugins/yourpluginname', 'plugin.js' );
CKEDITOR.replace('editor1');
...
</script>
制作上面提到的自定义_config.js并放置以下代码 CKEDITOR.editorConfig=函数(配置){


希望这有帮助!

拉威尔在哪里?
CKEDITOR.replace('editor1', { customConfig: '/ckeditor/custom_config.js'});
CKEDITOR.editorConfig = function( config ) {

config.language = 'en';

config.extraPlugins = 'PLUGINNAME';

config.toolbar = 'custom';
config.toolbar_custom = [
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Scayt' ] },
    { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
    { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] },
    { name: 'tools', items: [ 'Maximize' ] },
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source' ] },
    { name: 'others', items: [ '-' ] },
    '/',
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
    { name: 'styles', items: [ 'Styles', 'Format' ] },
    { name: 'about', items: [ 'About' ] },
    { name : 'new_group', items: ['PLUGINNAME'] }
];}