GithubHelp home page GithubHelp logo

tiny_mce_plus's Introduction

TinyMcePlus
===========

This plugin based on community engine and tiny_mce plugin, thanks for their great job.

1, Install tiny_mce_plus

cd vendor/plugins
git clone git://github.com/devon/tiny_mce_plus.git

script/generate tiny_mce_plus_migration
rake db:migrate

rake tiny_mce_plus:install

2, Install dependent plugins(if you didn't):

attachment_fu (git://github.com/technoweenie/attachment_fu.git)
responds_to_parent (http://responds-to-parent.googlecode.com/svn/trunk)
will_paginate (git://github.com/mislav/will_paginate.git)

Or(because some version doesn't work properly, so, i packaged the plugins)
rake tiny_mce_plus:plugins

Also, you need 'login_required' method and 'current_user' object in your application. (I recommend you use restful_authentication).

3, In your layout:

<%= javascript_include_tiny_mce_if_used %> 
<%= tiny_mce if using_tiny_mce? %>
<%= javascript_include_tag :defaults %>

4, In your controller:

uses_tiny_mce(:options => AppConfig.default_mce_options, :only => [:new, :edit])


Install file lists
==================

rake tiny_mce_plus:install will Install following files:

app
  |-- controller
    |-- tiny_mce_photos_controller.rb
  |-- helpers
    |-- remote_link_renderer.rb
  |-- models
    |-- tiny_mce_photo.rb
  |-- views
    |-- tiny_mce_photos
       |-- _photo_list.html.erb
config
  |-- initializers
    |-- tiny_mce_plus_config.rb

public
  |-- images
    |-- tiny_mce
  |-- javascripts
    |-- tiny_mce

You may custom the config in tiny_mce_plus_config.rb.

Attention:
1, do not put <p> </p> around the textarea.
2, If you use old will_paginate plugin, maybe change the url_for to url_option in remote_link_renderer.rb

Copyright (c) 2008 devon at kuxuesoft.com, released under the MIT license

tiny_mce_plus's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.