让 Epieditor 在 Ruby on Rails 中工作 [英] Getting Epiceditor to work in Ruby on Rails

查看:27
本文介绍了让 Epieditor 在 Ruby on Rails 中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在基本的 Ruby on Rails 应用程序中使用 epiceditor.我按照网页 http://epiceditor.com/# 上的说明进行操作.由于某种原因,史诗编辑器窗口未显示...谢谢

这是我在我的 edit.html.erb 视图中设置代码的方式:

```

<meta charset="utf-8"><script src="js/epiceditor.js"></script><身体><div id="epiceditor"></div><script type="text/javascript">var editor = new EpicEditor().load();<h1>编辑维基</h1><%= form_for @mywiki do |f|%><div><%= f.label :title %><%= f.text_field :title, :size =>75%>

<div><%= f.label :body %><%= f.text_area :body, :rows =>"35", :cols =>75"%>

<%= f.submit %><%结束%>

```

解决方案

是否添加了一些有效的 CSS?

从史诗编辑器的站点添加 css 后,我开始工作了.

I am trying to use epiceditor in a basic Ruby on Rails application. I followed the instructions on the webpage http://epiceditor.com/#. The epic editor window is not displaying for some reason...thanks

This is how I set up the code on my edit.html.erb view:

```

<head>
 <meta charset="utf-8">
   <script src="js/epiceditor.js"></script>
</head>
<body>
  <div id="epiceditor"></div>
</body>
<script type="text/javascript">
  var editor = new EpicEditor().load();
</script>

<h1>Edit Wiki</h1>

  <%= form_for @mywiki do |f| %>
    <div>
        <%= f.label :title %>
        <%= f.text_field :title, :size => 75 %>
    </div>
    <div>
        <%= f.label :body %>
        <%= f.text_area :body, :rows => "35", :cols => "75" %>
    </div>

    <%= f.submit %>

<% end %>

```

解决方案

is there some valid CSS added?

After adding the css from epic editor's site, I got it working.

这篇关于让 Epieditor 在 Ruby on Rails 中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
其他开发最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆