taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Auto-detect manually written URLs to assign hyperlink or emoticons converted to images #147

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hey.

First of all, this a really neat WYSIWYG-editor. It looks really good, and 
works 
very well. I've got a two-part request, but I feel the two are closely related.

Part 1 : Hyperlinks
When I write http://www.randomsite.com, it would be awsome if this link was 
automatically detected and assigned a hyperlink just like it would when written 
in MS Word or similar text editors.

Part 2 : Emoticons
This may be just as useful in other areas, but this is what I'm focusing on at 
the moment. When writing :) or :-) or :S or B) or whatever, this should be auto-
replaced by an image with the corresponding emoticon. I've been playing around 
with creating buttons for these smilies, and guess the insertHtml will suit 
this 
purpose. However, this will only work when the buttons are pressed - as far as 
I 
can understand. If the person manually enters :) in the text, it would be so 
great if the editor converted this "trigger-word" to the corresponding image. 
Kind of like a hotkey, but I guess calling it a trigger-word makes more sense 
since it will be converted after actually being written.

- Yeah, if someone could help me out with these things, it would really make my 
day. :)

Regards,
Erlend

Original issue reported on code.google.com by erlen...@online.no on 19 Dec 2009 at 9:42