本文整理匯總了PHP中dosamigos\ckeditor\CKEditor::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKEditor::init方法的具體用法?PHP CKEditor::init怎麽用?PHP CKEditor::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dosamigos\ckeditor\CKEditor
的用法示例。
在下文中一共展示了CKEditor::init方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
public function init()
{
$theme = new AppAsset();
$baseUrl = \Yii::getAlias($theme->baseUrl);
$cssList = [];
foreach ($theme->css as $css) {
if (preg_match('#^http#', $css)) {
continue;
}
$cssList[] = $baseUrl . '/' . $css;
}
$this->clientOptions = ['toolbar' => 'full', 'contentsCss' => $cssList, 'allowedContent' => true, 'disallowedContent' => 'img{width,height,style}', 'extraAllowedContent' => 'div(*){*}[*],span(*){*}[*]', 'shiftEnterMode' => 2, 'image2_disableResizer' => true, 'image2_prefillDimensions' => false];
if ($this->userOptions) {
foreach ($this->userOptions as $k => $v) {
$this->clientOptions[$k] = $v;
}
}
parent::init();
}
示例2: init
public function init()
{
$this->clientOptions = \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder', []);
parent::init();
}