Macrow/rails_kindeditor — pull request #14 by zhangyuan (2012-10-28 12:53:19+00:00)
Title: fix kindeitor create options

When I put `colortable` options whose value is nested array (see http://www.kindsoft.net/docs/option.html#colortable ) , Kindeditor fails to create.

Then I figured out that some of kindeditor's `create` options come from ruby data structure, which are converted to javascript string one by one in the helper. But it does not handle nesetd array well. In fact the options are just JSON data. Variables of hash, array or string can be converted to JSON format by `#to_json`. So I fix it.