Aissac / radiant-tiny-paper-extension

Radiand CMS Tiny MCE support using Paperclipped assets

Home Page:http://blog.aissac.ro/radiant/tiny-paper-extension/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Radiant Tiny-Paper Extension

About

An extension by Aissac that adds Paperclipped based Tiny MCE support to Radiant CMS. This extension provides a Rich Text Editor filter and allows you to edit the content using the TinyMCE editor. It also provides an Image and File browser to help you manage the Paperclipped assets.

Tested on Radiant 0.7.1, 0.8 and 0.9 RC2.

Features

  • TinyMCE WYSIWYG editor in your Radiant page as a filter;
  • Image Browser, based on Paperclipped image assets;
  • File Browser, based on Paperclipped assets;
  • Upload assets directly in TinyMCE Image/File browser;
  • Thumbnails and text list views;
  • Directly add a link to a Radiant Page from TinyMce editor.

Important Notice!

The git branches of this repository hold stable versions of the extension for older versions of Radiant CMS. For example the 0.8 branch is compatible with Radiant 0.8.

To checkout one of these branches:

git clone git://github.com/Aissac/radiant-tiny-paper-extension.git vendor/extensions/tiny_paper
cd vendor/extensions/tiny_paper
git checkout -b <branch-name> origin/<remote-branch-name>

As an example, if you're working on Radiant 0.8 you will need to checkout the 0.8 branch:

cd vendor/extensions/tiny_paper
git checkout -b my_branch origin/0.8

Also, be sure to checkout a version of the Paperclipped extension that is compatible with the Radiant version you're working on.

Installation

Tiny-Paper Extension has two dependencies, the Paperclipped extension and the will_paginate gem/plugin.

Install the Paperclipped Extension (be sure to checkout a version of Paperclipped compatible with the Radiant version you're working on.)

git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped

And the will_paginate gem/plugin:

git clone git://github.com/mislav/will_paginate.git vendor/plugins/will_paginate

or

sudo gem install mislav-will_paginate

You may also want to install the Settings Extension since it provides a very convenient way to configure thumbnail sizes for image assets:

git clone git://github.com/Squeegy/radiant-settings.git vendor/extensions/settings

Finally, install the Tiny-Paper Extension

git clone git://github.com/Aissac/radiant-tiny-paper-extension.git vendor/extensions/tiny_paper

For more information about installing and configuring Settings and Paperclipped check the extensions official pages.

If you choose to use the Settings extension, you will need to migrate it first:

rake radiant:extensions:settings:migrate
rake radiant:extensions:settings:update

and then run the Paperclipped migrations and updates:

rake radiant:extensions:paperclipped:migrate
rake radiant:extensions:paperclipped:update

The last step is to update the Tiny-Paper assets:

rake radiant:extensions:tiny_paper:update

Usage

The Tiny-Paper Extension adds a "Rich Text Editor" filter, just toggle the filter and start using it.

It also provides two management systems, one for images and one for files, both based on Paperclipped.

The Image Browser can be accessed through the insert/edit image icon, and presents all the images uploaded through Paperclipped. There are two types of views (text list and thumbnails), filtering, sorting and pagination facilities, and a form for directly uploading images.

The File Browser can be accessed through the insert/edit link icon and has two sections: one for adding a link to a Radiant Page, and one for adding a link to an uploaded file.

Contributors

About

Radiand CMS Tiny MCE support using Paperclipped assets

http://blog.aissac.ro/radiant/tiny-paper-extension/

License:Other


Languages

Language:Ruby 84.8%Language:JavaScript 15.2%