在WYSIWYG html编辑器中忽略韩语输入

时间:2013-07-03 03:52:47

标签: ruby-on-rails wysiwyg redactor

环境:

Rails 4.0.0 Ruby 1.9.3

我现在对我的应用程序有一种非常奇怪的行为。对于简单的文本输入字段,每当我使用韩语编写时,都不会提交内容。我正在尝试调试此问题,但没有解决任何问题。

要接受输入,我使用Redactor。每当我不使用它,韩国人再次工作。

来自视图

<script>
  $(function() {
    $('.my_post_body').redactor({ 
      minHeight: 300
   });
  });
</script>

<%= simple_form_for @post do |f| %>
 <%= f.input :body, input_html: { class: "my_post_body" } %>
 <%= f.button :submit %>
<% end %>
来自DB的

 id |         created_at         |         updated_at         |          body          |  title   

 44 | 2013-07-03 03:41:12.829545 | 2013-07-03 03:41:12.829545 |                        | worksㅎ

这可能是Rails 4.0.0的问题吗?

0 个答案:

没有答案