Skip to content

Commit

Permalink
Remove CkeConfig::$listPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 2, 2024
1 parent 3d34eea commit cd196c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/CkeConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ class CkeConfig extends Model
*/
public array|false $headingLevels = [1, 2, 3, 4, 5, 6];


/**
* @var string The list plugin to use (`List` or `DocumentList`).
* @since 3.5.0
*/
public string $listPlugin = 'List';

/**
* @var array|null Additional CKEditor config options
* @since 3.1.0
Expand Down Expand Up @@ -103,6 +96,8 @@ public function __construct($config = [])
}
}

unset($config['listPlugin']);

parent::__construct($config);
}

Expand Down
1 change: 0 additions & 1 deletion src/CkeConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function save(CkeConfig $ckeConfig, bool $runValidation = true): bool
'name' => $ckeConfig->name,
'toolbar' => $ckeConfig->toolbar,
'headingLevels' => $ckeConfig->headingLevels ?: false,
'listPlugin' => $ckeConfig->listPlugin,
'options' => $ckeConfig->options,
'js' => $ckeConfig->js,
'css' => $ckeConfig->css,
Expand Down
1 change: 0 additions & 1 deletion src/controllers/CkeConfigsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public function actionSave(): ?Response
'name' => $this->request->getBodyParam('name'),
'toolbar' => $this->request->getBodyParam('toolbar'),
'headingLevels' => $headingLevels,
'listPlugin' => $this->request->getBodyParam('listPlugin'),
'json' => $this->request->getBodyParam('json'),
'js' => $this->request->getBodyParam('js'),
'css' => $this->request->getBodyParam('css'),
Expand Down

0 comments on commit cd196c3

Please sign in to comment.