问题标签 [epiceditor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
69 浏览

javascript - 一页上有多个史诗编辑器

在我的项目中,我有两种语言环境的两种形式,所以我在一页上有两个 EpicEditor。但是,它不能很好地工作。

_form.html.erb

应用程序.js

你能建议我做什么?当然我可以调用两次 LoadEditor 方法,但我认为这不是一个好的解决方案,因为那样我可能会添加更多的语言环境。

使用此代码我有错误:
未捕获的类型错误:无法读取 null 的属性“值”

0 投票
0 回答
127 浏览

javascript - EpicEditor 实时预览 Rails

我正在尝试在 rails 项目中使用 EpicEditor,以允许用户查看带有他们编辑的 wiki 降价的实时预览。到目前为止,我已经成功地让 EpicEditor 加载并出现在我的 wiki 编辑页面上,但在创建实时预览方面没有任何成功。我使用https://github.com/zethussuen/epic-editor-rails进行设置。为了实现这一点,我必须如何自定义我的 epiceditor.js.erb 文件?到目前为止,这是我的代码:

维基/edit.html.haml:

有关更多信息,这是我正在处理的分支https://github.com/jlquaccia/blocipedia/tree/extra-credit-user-stories-3-markdown-preview