2017 © Pedro Peláez
 

yii2-extension yii2-tinymce-widget

TinyMCE widget for Yii2.

image

2amigos/yii2-tinymce-widget

TinyMCE widget for Yii2.

  • Wednesday, May 2, 2018
  • by tonydspaniard
  • Repository
  • 12 Watchers
  • 67 Stars
  • 125,796 Installations
  • JavaScript
  • 29 Dependents
  • 0 Suggesters
  • 38 Forks
  • 5 Open issues
  • 9 Versions
  • 12 % Grown

The README.md

TinyMCE Widget for Yii2

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Renders a TinyMCE WYSIWYG text editor plugin widget., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

composer require 2amigos/yii2-tinymce-widget:~1.1

or add, (*5)

"2amigos/yii2-tinymce-widget" : "~1.1"

to the require section of your application's composer.json file., (*6)

Usage


use dosamigos\tinymce\TinyMce; = $form->field($model, 'text')->widget(TinyMce::className(), [ 'options' => ['rows' => 6], 'language' => 'es', 'clientOptions' => [ 'plugins' => [ "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" ] ]);?>

About ClientOptions

Please, remember that if you are required to add javascript to the configuration of the js plugin and is required to be plain JS, make use of JsExpression. That class was made by Yii for that specific purpose. For example:, (*7)

// Having the following scenario






= $form->field($model, 'content')->widget(TinyMce::className(), [
    'options' => ['rows' => 16],
    'language' => 'en_GB',
    'clientOptions' => 
        // ...
        // this will render the function name without quotes on the configuration options of the plugin
        'file_picker_callback' => new JsExpression('jsFunctionToBeCalled'),
        // ...
    ]
]); ?>

Testing

bash $ phpunit, (*8)

Further Information

Please, check the TinyMCE plugin site documentation for further information about its configuration options., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Credits

License

The BSD License (BSD). Please see License File for more information., (*11)

2amigOS!
Web development has never been so fun!
www.2amigos.us, (*12)

The Versions

02/05 2018

dev-master

9999999-dev http://yiiwheels.com/extension/tinymce-widget

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget tinymce

09/06 2017

1.1.2

1.1.2.0 http://yiiwheels.com/extension/tinymce-widget

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget tinymce

28/03 2015

1.1.1

1.1.1.0 http://yiiwheels.com/extension/tinymce-widget

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget tinymce

28/03 2015

1.1.0

1.1.0.0 http://yiiwheels.com/extension/tinymce-widget

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget tinymce

16/03 2015

1.0.3

1.0.3.0 http://yiiwheels.com/extension/tinymce-widget

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget tinymce

15/03 2015

1.0.2

1.0.2.0

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii widget tinymce

06/03 2015

1.0.1

1.0.1.0

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii widget tinymce

06/03 2015

1.0.0

1.0.0.0

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii widget tinymce

02/04 2014

0.1.0

0.1.0.0

TinyMCE widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii widget tinymce