Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Как поставить несколько редакторов на одной странице #29

Open
Hozyainowyacheslav opened this issue Aug 5, 2018 · 1 comment

Comments

@Hozyainowyacheslav
Copy link

Пробовал вывести две формы, в каждой из которых был подключен редактор. В первой форме выводится нормально, а во второй обычный textarea

@San27079
Copy link

Чтобы вывести несколько редакторов на странице необходимо генерировать уникальный id для каждого к примеру

$form->field($model->translate($language->code), '[' . $language->code . ']content')->widget(\mihaildev\ckeditor\CKEditor::className(), [
'editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder', [
'preset' => 'full',
'language' => Yii::$app->language,
]),
'options' =>['id' => 'ваш уникальный id']
]) ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants