我是ckeditor
的新手,无法添加外部插件。自从2小时以来一直在努力。我点了这个链接http://ckeditor.com/forums/CKEditor-3.x/Tutorial-create-external-plugin-for-CKEDITOR。正确地遵循了步骤,但它没有帮助。请帮助你们。谢谢!
答案 0 :(得分:1)
在这种情况下,您应该首先关注docs.ckeditor.com,阅读以下文章: http://docs.ckeditor.com/#!/guide/plugin_sdk_intro
您将知道如何创建自己的插件:)
答案 1 :(得分:0)
/* Provide url/path to ckeditor assets */
var ckeditor_assets = 'https://github.com/mtvbrianking/CKEditorTutorial/demo1/assets/ckeditor/';
CKEDITOR.plugins.addExternal('pbckcode', ckeditor_assets + 'plugins/pbckcode/', 'plugin.js');
CKEDITOR.replace('textArea_name', {
skin: 'moonocolor,' + ckeditor_assets + 'skins/moonocolor/',
extraPlugins: 'pbckcode',
toolbar: [
['clipboard', 'undo', '-', 'Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo'],
['TextColor', 'Bold', 'Italic'],
['Format', 'Font', 'FontSize'],
['pbckcode']
]
});

<script src="http://cdn.ckeditor.com/4.5.7/standard/ckeditor.js"></script>
<textarea id="textArea_id" name="textArea_name"></textarea>
&#13;