2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 112 forks source link

allowedContent in options #65

Closed StalkAlex closed 8 years ago

StalkAlex commented 8 years ago

Hello, is this code suppose to work?

<?= $form->field($model, 'value')->widget(CKEditor::className(), [
                'options' => [ 'allowedContent' => true ],
                'preset' => 'full',
  ]) ?>

I want a possibility to insert custom tags during edititng. And this code is not working, editor still removes all unstandard tags.

tonydspaniard commented 8 years ago

instead of options use clientOptions: https://github.com/2amigos/yii2-ckeditor-widget/blob/master/src/CKEditorTrait.php#L39