You are here: Forums Ask a Rails expert Tinymce 3.3.2...
Posted in Forums : Ask a Rails expert
Authority 0
Posting Rating 69
Sign in to rate this post
|
Could anyone tell me how I can integrate the latest version of tinymce in Rails? |
|
Authority 62
Posting Rating 0
Sign in to rate this post
|
Hi, Have a look on http://wiki.moxiecode.com/index.php/TinyMCE:Ruby_on_Rails |
Authority 12
Posting Rating 0
Sign in to rate this post
|
1) Install gem using Alternatively you can install plugin(instead of gem) using 2) Add this line in the controller where you want to use TinyMCE
uses_tiny_mce :options => {
:theme => ‘advanced’,
:theme_advanced_resizing => true,
:theme_advanced_resize_horizontal => false,
:plugins => %w{ table fullscreen }
} If you have a set of default options that is used throughout all editors in your application, you might want to make them global. You can do this by putting your settings into config/tiny_mce.yml. If the file exists, the tiny_mce plugin will parse the options in it first.
You can read about all these options at: http://wiki.moxiecode.com/index.php/TinyMCE:Configuration 3)Then append the following to the text area you want to transform into a TinyMCE editor. You can change the name of the class you want to use by editing the ‘editor_selector’ param in the controller code options.
4) Lastly, add the following line(s) to the <head> element of your application view i.e. the html.erb file where you want to include TinyMCE
|
Authority 0
Posting Rating 2
Sign in to rate this post
|
I have been seeing theed hardy clothes torch relay making its way into all countries and regions, delivering smiles and Olympic spirit. However,true religion what touches me most is the might behind that unite all Chinese at home and abroad. I never really thought Chinese could be so united. If my memory serves, Chinese constantly complain about the flip side of our country. We were very negative at the way the party rules and performs. As economy booms, our attention begin to transfix on more freedom of speech, democracy,ed hardy etc. but in terms of the like of democracy, our country is not doing so well to meet the demands. And there are lots of other problems arising from all aspect of life. To my surprise and joy, all complaints were set aside and Chinese are louis vuitton handbagsvery united to protect the torch, defend our dignity, and ensure a successful Beijing Olympics! I feel very proud, more than ever, to be Chinese! With such unity in concert, i would not even doubt China will restore its past glory and splendor soon. |
Authority 62
Posting Rating 0
Sign in to rate this post
|
I would advise against using the gem. Where I have done so in the past it’s come back to bite me, since upgrading broke things and was cumbersome on the server. The gem is not officially maintained so you have to rely on someone else to maintain it for you. Since tinymce is 100% javascript my preference is to keep it 100% separate from Rails. I use jQuery for all rails websites, so I use the tinymce jQuery plugin, which you can download from http://tinymce.moxiecode.com/download.php (third item from the top). This has the advantage of loading tinymce in the background, which speeds up the page a lot, plus it only loads tinymce when it’s actually needed. |
Ask a Rails expert : nested application ApplicationController get called intead of children::ApplicationController
Ask a Rails expert : Best way to structure a database for a large/static dataset
Ask a Rails expert : Ruby Developer (ROR) - Scottish based (Remote working from within the UK)
Ask a Rails expert : Above Ground Pool Supplies
Ask a Rails expert : How to get url params in observer or model in Rails 3.1
Ask a Rails expert : What can persuade you to hire Junior Ruby devs with significant PHP experience?
Ask a Rails expert : What industry value does the Ruby or Rails Certification currently have?
Ask a Rails expert : Louis Vuitton Damier Azur Canvas specially sale ( www.salecheaplouisvuitton.com )
Ask a Rails expert : ·How to check errors/puts statements from ruby files which are under cronob
Ask a Rails expert : Louis Vuitton cheap Soft Sided Luggagespecial offer( www.salecheaplouisvuitton.com )