markpdd13 / cleditor
CLeditor Basic Example Yii2
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-05-02 15:00:01 UTC
README
CLEditor является открытым исходным кодом jQuery плагин, который обеспечивает легкий, полнофункциональный, кросс-браузер, расширяемый, WYSIWYG HTML редактор, который может быть легко добавлен в любой веб-сайт.
Установка
Удобнее всего установить это расширение через composer.
Либо запустить
composer require markpdd13/cleditor
или добавить
"markpdd13/cleditor": "^1.0"
в разделе require
вашего composer.json файла.
Использование
use markpdd13\cleditor\Cleditor;
//c ActiveForm
<?= $form->field($model, 'body')->widget(Cleditor::className(), [
'editorOptions' => [
'width' => "700",
"controls"=> // controls to add to the toolbar
"bold italic underline strikethrough subscript superscript | font size "] ,
])?>
Полезные ссылки
CLEditor http://premiumsoftware.net/cleditor