id))
{
echo '缺少ID';
exit;
}
if(empty($this->name))$this->name = $this->id;
//语言设定
$this->lang = 'zh-cn';
//分页符号
$this->pageBreakTag=Yii::$app->params['ueditor']['pageBreakTag'];
}
public function run()
{
$assetsUrl = $this->registerClientScript();
echo "";
echo "";
echo "";
echo "";
}
else
{
echo "
//focus时自动清空初始化时的内容
autoClearinitialContent:false,
//关闭字数统计
wordCount:false,
//关闭elementPath
elementPathEnabled:false
//更多其他参数,请参考editor_config.js中的配置项
});
";
}
}
protected function registerClientScript()
{
$view = $this->getView();
$coreAsset = CoreAsset::register($view);
$coreAssetsUrl = $coreAsset->baseUrl;
$assetPlugin = PluginsAsset::register($view);
$pluginUrl = $assetPlugin->baseUrl;
return array('coreAssetsUrl'=>$coreAssetsUrl,'pluginUrl'=>$pluginUrl);
}
}