piraids
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору помогите добавить поле, отключающее использование colorbox'а у меня подключен ckeditor, правда не знаю какой версии, но 3++ это точно, необходимо в настройках изображения добавить отключение colorbox'а в ckeditor/plugins/image/dialogs/image.js вставляю код: Код: ,{ id : 'toGallery', type : 'select', 'default' : '', style: 'margin-top: 15px', items : [ [ editor.lang.gallery.notSet , ''], [ editor.lang.gallery.single , 'gallery'], [ editor.lang.gallery.many , 'gallerys'], ], setup : function( type, element ) { if ( type == LINK ) { var a = element.getAttribute('rel'); if (null == a) { this.setValue(element.getAttribute('class')); } else { this.setValue(element.getAttribute('rel')); } } }, commit : function(type, element) { if (type == LINK) { if ( this.getValue() || this.isChanged()) { if ('gallery' == this.getValue()) { element.setAttribute('class', this.getValue()); element.removeAttribute('rel'); } else { if ('' == this.getValue()) { element.removeAttribute('class', this.getValue()); element.removeAttribute('rel', this.getValue()); } else { element.setAttribute('class', this.getValue()); element.setAttribute('rel', this.getValue()); } } } } } } | но при изменении image.js, форма редактирования изображением вообще не открывается | Всего записей: 1 | Зарегистр. 07-11-2013 | Отправлено: 15:09 07-11-2013 | Исправлено: piraids, 15:11 07-11-2013 |
|