Giter VIP home page Giter VIP logo

yii-redactorjs-widget's Introduction

Yii-RedactorJS-Widget

Yii Widget for the WYSIWYG RedactorJS editor

Requirements

  • JQuery > 1.7.1
  • Browser:
  • Firefox 3+
  • Safari 4+
  • Chrome 4+
  • Opera 10+
  • IE 7+

Installation

  1. Download or Clone the files
  2. Extract into the widgets folder or extensions folder

Usage

Using with a model

$this->widget('application.widgets.redactorjs.Redactor', array( 'model' => $model, 'attribute' => 'some_attribute' ));

Using with a model and a mini toolbar and different language

$this->widget('application.widgets.redactorjs.Redactor', array( 'lang' => 'de', 'toolbar' => 'mini', 'model' => $model, 'attribute' => 'some_attribute' ));
  • There are two toolbars supported right now: default & mini. By default the widget will load the 'default' toolbar.
  • Supported languages currently: de, en, fr, lv, pl, pt_br, ru, ua

Using with a model and custom toolbar options

$this->widget('application.widgets.redactorjs.Redactor', array( 'editorOptions' => array('autoresize' => true, 'fixed' => true), 'model' => $model, 'attribute' => 'some_attribute' ));
  • Referrer to the redactorjs API for the list of supported elements. View Docs

Using with a name and value

$this->widget('application.widgets.redactorjs.Redactor', array( 'name' => 'some name', 'value' => 'some value' ));

Authors

Vincent Gabriel http://vadimg.com

yii-redactorjs-widget's People

Contributors

vinceg avatar

Stargazers

Shaan M Khan avatar

Watchers

Shaan M Khan avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.