Я использую CKEditor 4.1.1 и не могу понять, как показать кнопку «Вставить изображение» на панели инструментов. Это моя текущая конфигурация CKEditor в config.js
.Как добавить кнопку «Вставить изображение» в CKEditor?
CKEDITOR.editorConfig = function(config) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for a single toolbar row.
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'forms' },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'tools' },
{ name: 'others' },
{ name: 'about' }
];
// The default plugins included in the basic setup define some buttons that
// we don't want too have in a basic editor. We remove them here.
config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript,Font,SpellChecker';
config.disableNativeSpellChecker = false;
config.removePlugins = 'scayt,menubutton,contextmenu';
// Let's have it basic on dialogs as well.
config.removeDialogTabs = 'link:advanced';
};
Как изменить это, чтобы показать кнопку «Вставить изображение»?
Я читал документацию и пробую разные вещи, но до сих пор ничего не сработало.
вы хотите добавить вставку изображения в CKEditor? или загрузить? –
@ яша - просто добавьте кнопку, которая позволяет вставить ссылку на изображения, а не загружать что-либо .. – Nate