简体   繁体   English

像所见即所得的Google Wave

[英]Google Wave like WYSIWYG

I was searching for the google wave-like wysiwyg editor but did not succeed on it. 我正在搜索类似Google Wave的所见即所得编辑器,但未成功。 I've tried jWYSIWYG, clEditor and couple of other editors. 我已经尝试过jWYSIWYG,clEditor和其他几个编辑器。

Now i want to implement it by myself. 现在,我想自己实施。 Do you have any ideas about how it working? 您对它的工作方式有任何想法吗? Especially how do they draw a caret and handle mouse/keyboard events and text selection. 特别是他们如何绘制插入符号并处理鼠标/键盘事件和文本选择。

I don't want to use any existing WYSIWYG editors because they dont give me what i want. 我不想使用任何现有的所见即所得编辑器,因为它们没有给我我想要的东西。

Thank you in advance. 先感谢您。

You could peek at the source code of some of the popular open source editors to get an idea of their approach, might give you some insight into how you want to tackle your solution. 您可以浏览一些流行的开源编辑器的源代码,以了解它们的方法,还可以使您对如何解决解决方案有一些了解。

TinyMCE is on GitHub: TinyMCE在GitHub上:

https://github.com/tinymce/tinymce https://github.com/tinymce/tinymce

CKEditor has a SVN repo: CKEditor有一个SVN存储库:

http://dev.ckeditor.com/browser http://dev.ckeditor.com/browser

And of course, they are Javascript, so you really look at any of them you want to. 当然,它们是Javascript,因此您可以随意查看它们中的任何一个。

我将回答我的问题-使用contentEditable属性。

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

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