Skip to content

Commit

Permalink
3.0.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shirase committed Nov 7, 2017
1 parent d6286d2 commit eda3f75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Yii Starter Kit Change Log
==========================

3.0.21.1
--------
- Bug: CKEditor disableAutoInline pos ready

3.0.21
------
- Mailer uses file transport for dev
Expand Down
3 changes: 2 additions & 1 deletion frontend/widgets/InlineEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use yii\db\ActiveRecord;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\web\View;

class InlineEditor extends Widget
{
Expand Down Expand Up @@ -64,7 +65,7 @@ public function run() {
$url = \Yii::getAlias('@frontendUrl/ckeditor/widgets');
$this->view->registerJs("CKEDITOR.plugins.addExternal('widgets', '".$url."/plugin.js?v=".filemtime($path.'/plugin.js')."', '');");

$this->view->registerJs('if(CKEDITOR.instances["'.$this->id.'"]) delete CKEDITOR.instances["'.$this->id.'"];');
$this->view->registerJs('CKEDITOR.disableAutoInline = true;', View::POS_END);

$kcfinderUrl = KCFinderAsset::register($this->view)->baseUrl;
\Yii::$app->session->set('KCFINDER', [
Expand Down

0 comments on commit eda3f75

Please sign in to comment.