etherpad-lite/src/static/js
Daniel Perez Alvarez 699aa299f8 Normalize inserted text using UNorm
For some reason, the client was sending the server a Unicode-normalized
version of inserted strings. So if for example we inserted the string
'ä' (i.e. \x61\xCC\x88) into the document, what would be sent to the
server would be 'ä' (i.e. \xC3\xA4).

This wouldn't be a problem on its own. BUT JavaScript reports that the
length of the first string is 2, while the length of the second one is
1.

So the command that was being sent to the server was 'Z:1>2*0+1$ä', when
it should really be 'Z:1>1*0+1$ä'. When the `checkRep` method checks the
length of the inserted string, it finds an inconsistency, and
disconnects the client.

We now normalize the inserted string before the command is generated, so
the length is always correct.
2012-08-13 17:09:02 +01:00
..
admin Quick hack to hide ep_etherpad-lite in plugin list 2012-07-05 18:13:29 +02:00
pluginfw Merge branch 'develop' of git://github.com/Pita/etherpad-lite into restartserver 2012-07-03 23:32:37 +02:00
ace.js Bugfix for bug introduced by 96ab3dc3b4: jQuery is packaged - this is pure duplication. 2012-05-30 10:00:36 +02:00
ace2_common.js use underscore.js 2012-03-17 13:38:26 +01:00
ace2_inner.js Fix typo. 2012-07-13 08:24:02 +02:00
AttributeManager.js documentation on AttributeManager 2012-04-08 21:21:05 +02:00
AttributePool.js added lineMarkerAttribute + more comments 2012-04-05 15:20:48 +02:00
broadcast.js Disconnect handling and cleanup of unused code 2012-04-23 14:47:07 +02:00
broadcast_revisions.js Unified timeslider and pad editing protocol / component 2012-04-23 12:52:30 +02:00
broadcast_slider.js Fix timeslider. 2012-07-14 15:54:44 +02:00
Changeset.js remove unused _opt in favor of code size/readability 2012-07-08 11:51:04 +02:00
changesettracker.js replaceing AttributePoolFactory by AttributePool 2012-03-18 09:05:46 +01:00
ChangesetUtils.js added AttributeManager, ChangesetUtils 2012-04-05 00:50:04 +02:00
chat.js Use Tinycon to display chat mentions in favicon. 2012-07-12 20:18:33 +02:00
collab_client.js Add in a plugin hook "handleClientMessage_<MSG_NAME>" 2012-08-10 09:51:18 -07:00
colorutils.js Merge branch 'pita' 2012-03-02 22:00:20 +01:00
contentcollector.js Normalize inserted text using UNorm 2012-08-13 17:09:02 +01:00
cssmanager.js cssManager top is not used, so drop it 2012-04-21 13:47:11 +02:00
domline.js added new hook 'acePostWriteDomLineHTML' which gets called after a domline is created and has been added to the page. Also fixed problems with ReferenceExceptions due to require-kernel not being sent to the iframe. 2012-04-18 14:44:25 -07:00
draggable.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
excanvas.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
farbtastic.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
jquery.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
json2.js Better error message for broken JSON 2012-03-21 19:29:59 +01:00
linestylefilter.js linestylefilter now uses attributemanager to find lineattributemarkers 2012-04-07 02:14:19 +02:00
pad.js Fix #880 Remove call to padsavedrevs.handleIsFullyConnected 2012-07-18 15:54:53 +02:00
pad_connectionstatus.js Use nice editbar popups for connection status instead of srceen-blocking modals. 2012-07-13 08:23:22 +02:00
pad_cookie.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
pad_docbar.js Merge branch 'johnyma22' 2012-04-01 13:27:38 +02:00
pad_editbar.js Fix padeditbar.toggleDropDown 2012-07-13 09:13:22 +02:00
pad_editor.js Merge pull request #667 from fourplusone/feature/cleaner_code 2012-05-13 06:51:58 -07:00
pad_impexp.js remove wordle 2012-05-13 20:20:18 +01:00
pad_modals.js Fix showModal animation. 2012-07-14 15:14:46 +02:00
pad_savedrevs.js Merge branch 'johnyma22' 2012-04-01 13:27:38 +02:00
pad_userlist.js Add userJoinOrUpdate hook 2012-07-17 10:12:10 -07:00
pad_utils.js Merge git://github.com/Gared/etherpad-lite into develop 2012-03-11 16:07:34 -07:00
rjquery.js added jQuery to ace2_inner, make it embeddable, ace hooks work now propertly in ace2_inner 2012-03-14 01:41:05 +01:00
security.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
skiplist.js added a comment on skiplist.js 2012-04-08 21:21:52 +02:00
timeslider.js Merge branch 'master' into timeslider-realtimeupdate+readonly-pads 2012-05-29 21:26:12 +02:00
tinycon.js Use Tinycon to display chat mentions in favicon. 2012-07-12 20:18:33 +02:00
underscore.js use underscore.js 2012-03-17 13:38:26 +01:00
undomodule.js use underscore.js 2012-03-17 13:38:26 +01:00
unorm.js Add Unicode normalization library 2012-08-13 17:06:25 +01:00
virtual_lines.js The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00