开发者

Google Wave like WYSIWYG

开发者 https://www.devze.com 2023-03-25 00:03 出处:网络
I was searching for the google wave-like wysiwyg editor but did not succeed on it. I\'ve tried jWYSIWYG, clEditor and couple of开发者_JAVA百科 other editors.

I was searching for the google wave-like wysiwyg editor but did not succeed on it. I've tried jWYSIWYG, clEditor and couple of开发者_JAVA百科 other editors.

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:

https://github.com/tinymce/tinymce

CKEditor has a SVN repo:

http://dev.ckeditor.com/browser

And of course, they are Javascript, so you really look at any of them you want to.


I will answer my question -- use contentEditable property.

0

精彩评论

暂无评论...
验证码 换一张
取 消