Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rob006-software/yii-tinymce
TinyMCE editor integration for Yii 1.1
https://github.com/rob006-software/yii-tinymce
tinymce yii yii-extension
Last synced: about 2 months ago
JSON representation
TinyMCE editor integration for Yii 1.1
- Host: GitHub
- URL: https://github.com/rob006-software/yii-tinymce
- Owner: rob006-software
- License: mit
- Created: 2017-06-04T17:04:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T10:52:36.000Z (about 1 year ago)
- Last Synced: 2024-09-18T18:49:09.303Z (4 months ago)
- Topics: tinymce, yii, yii-extension
- Language: PHP
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
TinyMCE 6.x integration for Yii 1.1
===================================Yii 1.1 extension that provides basic integration with [TinyMce editor](https://www.tinymce.com/).
Based on https://github.com/zxbodya/yii-tinymce.
Installation
------------The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```shell
composer require rob006/yii-tinymce
```or add
```json
"rob006/yii2-tinymce": "^2.0"
```to the `require` section of your `composer.json` file.
Usage
-----Basic usage:
```php
widget('TinyMceWidget', [
'model' => $model,
'attribute' => 'value',
]) ?>
```Usage with custom settings and [Yiistrap](http://www.getyiistrap.com/) and [elFinder](https://github.com/rob006/yii-elfinder2) extensions integration.
```php
= $form->textAreaControlGroup($model, 'value', ['rows' => 6, 'span' => 8,]) ?>
widget('TinyMceWidget', [
'model' => $model,
'attribute' => 'value',
'dry_run' => true,
'fileManager' => [
'class' => 'TinyMceElFinder',
'popupConnectorRoute' => 'pageAssetsPopup',
'popupTitle' => 'Files',
],
'settings' => [
'content_css' => $this->getEditorStyles(),
],
]) ?>
```Resources
---------* [Extension page](https://github.com/rob006-software/yii-tinymce)
* [elFinder extension](https://github.com/rob006-software/yii-elfinder2)
* [TinyMce page](https://www.tinymce.com/)