Спасибо, заработало!
Теперь встал вопрос как текст туда из базы засунуть
пробовал 'value' : data.content, но ничего не появилось.
попробовал использовать CKEditorInline
Код: Выделить всё
{{ CKEditorInline_begin({'preset' : 'full'}) }}
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua.
</p>
{{ CKEditorInline_end() }}
но вылезает ошибка
An exception has been thrown during the rendering of a template ("call_user_func_array() expects parameter 1 to be a valid callback, class 'CKEditorInline' not found")
тут как быть?
И еще такой вопрос, настраиваю редактор, но почему-то не все отображается
Код: Выделить всё
{{ form.field(model, 'content').widget('dosamigos\\ckeditor\\CKEditor', {
'options' : {'rows' : 6},
'preset' : 'custom',
'clientOptions' : {
'skin' : 'moono',
'toolbarGroups' : [
{name: 'document', groups: ['mode', 'document', 'doctools']},
{name: 'clipboard', groups: ['clipboard', 'undo']},
{name: 'editing', groups: ['find', 'selection', 'spellchecker', 'editing']},
{name: 'styles', groups: ['styles']},
{name: 'tools', groups: ['tools']},
'/',
{name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
{name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'paragraph']},
{name: 'links', groups: ['links']},
{name: 'insert', groups: ['insert']},
{name: 'forms', groups: ['forms']},
{name: 'others', groups: ['others']},
{name: 'colors', groups: ['colors']},
],
}
})|raw }}
отображается
так,
а должно быть примерно
так
В чем может быть дело?