2amigos / yii2-ckeditor-widget

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

Multiple requests css assets #115

Closed markux closed 7 years ago

markux commented 7 years ago

Hi, I've 20 input on one page, all like this:

<?= $form->field($model, 'principle_en')->widget(\dosamigos\ckeditor\CKEditor::className(), [ 'clientOptions' => ['height' => 200], 'preset' => 'standard']) ?>

and each one make a request for content.css and tableselection.css file: is there a manner to avoid these requests?

tonydspaniard commented 7 years ago

@markux strange as the asset bundle classes included do not have those sources. It seems is part of a plugin? How do you register that plugin? Can you please elaborate a bit further your question with more code? Thanks!

markux commented 7 years ago

@tonydspaniard I found contents.css only in ckeditor.js

CKEDITOR.getUrl("contents.css"),

so I need to deep into how it works. thanks