This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Multiple instances #7
Labels
Comments
Yes... you should be able to |
I guess I should use different id's, how can I do this with this code: (different id for each language) field($model, 'content')->widget(CKEditor::className(), [ 'options' => ['rows' => 20, 'name' => "{$language}[PageLang][content]"], 'preset' => 'standard', ]); ?> |
@hashie5 when you add a model, the unique_id is created from the active id of the model name + attribute name. But if you wish to attach your own ids, then you have to set the |
I added the id on the same level as the 'options' and 'preset', got it now, thanks field($model, 'content')->widget(CKEditor::className(), [ 'options' => [ 'rows' => 20, 'name' => "{$language}[PageLang][content]", 'id' => "{$language}[PageLang][content]", ], 'preset' => 'standard', ]); ?> |
Glad you fix it... Best |
I would also like to add 'labelOptions' => ['class' => '...'], |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can I add multiple ckeditor instances on one page?
The text was updated successfully, but these errors were encountered: