From c39200429046cdde16edbcb6e28c5cf3c7434d4a Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 10 Nov 2013 20:34:10 -0800 Subject: some more doco for how to finish it. --- js/crypto.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js') diff --git a/js/crypto.js b/js/crypto.js index 022613128..4b7baa155 100644 --- a/js/crypto.js +++ b/js/crypto.js @@ -18,6 +18,15 @@ function str_rot13 (str) { } +// We probably just want the element where the text is and find it ourself. e.g. if +// there is highlighted text use it, otherwise use the entire text. +// So the third element may be useless. Fix also in view/tpl/jot.tpl before +// adding to all the editor templates and enabling the feature + +// Should probably do some input sanitising and dealing with bbcode, hiding key text, and displaying +// results in a lightbox and/or popup form are left as an exercise for the reader. + + function red_encrypt(alg, elem,text) { var enc_text = ''; var newdiv = ''; -- cgit v1.2.3