Closed des1roer closed 7 years ago
@des1roer I need a bit more info. Code? I'll have a look this weekend. Hope I can fix all issues at once.
@des1roer please check with new version 2.0 and the way that I did it is like this:
use dosamigos\ckeditor\CKEditorInline;
// Assuming the plugin is at your web root directory
$this->registerJs("
CKEDITOR.plugins.addExternal('spoiler', '/spoiler_1.0/spoiler/plugin.js', '');
");
// at the top
$this->registerCssFile('/spoiler_1.0/include/spoiler.css');
$this->registerJsFile('/spoiler_1.0/include/spoiler.js', ['depends' => 'yii\web\JqueryAsset']);
?>
<?php CKEditorInline::begin(['preset' => 'custom', 'clientOptions' => [
'extraPlugins' => 'pbckcode,spoiler',
]]) ?>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.</p>
<?php CKEditorInline::end() ?>
And this is how it looks
i install spoiler and
the output does not display the styles