Comments (6)
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', ]); ?>from yii2-ckeditor-widget.
Yes... you should be able to
from yii2-ckeditor-widget.
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', ]); ?>from yii2-ckeditor-widget.
@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 'options' => ['id'=>...
from yii2-ckeditor-widget.
Glad you fix it...
Best
from yii2-ckeditor-widget.
I would also like to add 'labelOptions' => ['class' => '...'],
found it here: http://stuff.cebe.cc/yii2docs/yii-widgets-activefield.html#$labelOptions-detail
where do I add this code?
from yii2-ckeditor-widget.
Related Issues (20)
- Problem in sending CSRF token HOT 1
- Unable to change default font HOT 2
- Problem in adding extra plugin HOT 3
- Class 'dosamigos\ckeditor\CKEditor' not found HOT 5
- how can I do a custom preset or remove some buttons from basic? HOT 1
- Several features are not available HOT 1
- pastefromword button is not showing up HOT 1
- Any plan to include full ckeditor release instead of just the standard one? HOT 2
- Simpy can't upload image HOT 3
- Not all buttons are showing in full preset mode HOT 15
- Installation failed, requirements could not be resolved to an installable set of packages HOT 7
- Align button not showing up HOT 3
- CKEditor inside yii2-dynamicform
- Easy Image Plugin HOT 1
- Removing Div tag automatically
- How to install KC finder? HOT 2
- How to prevent tag stripping? HOT 1
- Help Needed
- Upload to private directory
- how to fix this error, i tryna use basic template but come this error in console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-ckeditor-widget.