gpt4 book ai didi

javascript - 将 Atmosphere 中的媒体编辑器与 Telescope 应用程序集成

转载 作者:行者123 更新时间:2023-11-30 12:30:39 25 4
gpt4 key购买 nike

在 Integrating a medium-editor on the Atmosphere with a Telescope App 我有一些未知的部分,我无法搜索 Atmosphere 包页面只引用克隆的 github 页面。

我想将一个中型编辑器克隆与我的 Telescope 应用程序集成,在 Atmosphere 上说 CitizenKevin/meteor-medium-editor。克隆的 Github 页面上的说明是关于非 Meteor 应用程序、将库引用到 html 等。

meteor 是怎么回事。我是如何开始使用它的。我看到有人跳过了 html 部分中的引用。发行meteor add citizenKevin:medium-editor会做那些设置。是吗?

我跳过了这个,只是添加了一个:

<div class="editable">adasdasd</div>

到我的 main.html 文件,我正在使用 Discovering Meteor 书。

并将初始化添加到 main.js 文件中:

editor = new MediumEditor('.editable');

但我上面的 div 现在不可编辑。

我的设置和尝试中缺少什么?

最佳答案

这已经在其他项目以及 meteor 博客包中完成了。

他们在这里设置了一个编辑器文件:https://github.com/Differential/meteor-blog/blob/master/client/views/admin/editor.coffee

然后相应的编辑功能在这里:https://github.com/Differential/meteor-blog/blob/master/client/views/admin/edit.coffee

因此,基于这些,您应该能够了解如何在 Meteor 项目中使用 medium-editor 插件。

关于javascript - 将 Atmosphere 中的媒体编辑器与 Telescope 应用程序集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27807762/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com