简体   繁体   English

Rails 4.2.2 - 如何实现注释器功能?

[英]Rails 4.2.2 - How to implement annotator feature?

In rails 4.2.2, I am trying to implement annotations feature.在 rails 4.2.2 中,我正在尝试实现注释功能。 I have referred this http://annotatorjs.org , but I am not getting like how to save annotations?我已经提到了这个http://annotatorjs.org ,但我不知道如何保存注释? Please suggest some more plugins(with full documentation) which will helps me to create this feature.请推荐更多插件(带有完整文档),这将帮助我创建此功能。

Well, docs on the annotatorjs.org say that you need to implement a backend for store plugin .好吧, annotatorjs.org 上的文档说你需要为store plugin实现一个后端。 There'a also an implementation in Python that you can look at and a working service (it seems it uses that backend implementation).您还可以查看Python中的一个实现和一个工作服务(它似乎使用了该后端实现)。

I'd just go on the http://annotateit.org/ , open the web developer console, made some saving and see what requests will be generated.我只是去http://annotateit.org/ ,打开 web 开发者控制台,进行一些保存,看看会生成什么请求。 After that you just need to replay it via Rails yourself.之后你只需要自己通过 Rails 重放它。

Have a nice day!祝你今天过得愉快!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM