Mercury2 Uncaught Error: Error in Rangy Serializer module
Opened this issue · 3 comments
antonkulaga commented
Whenever I try to insert table or video to html node of Mercury2 I get Uncaught Error: Error in Rangy Serializer module: deserializeRange(): checksums of serialized range root node (b163f884) and target root node (a0167a5) do not match
NOTE: I use rangy libs versions from range googlecode trunk.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1328739-mercury2-uncaught-error-error-in-rangy-serializer-module?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github).eanekrasov commented
As temporary solution you may bypass checksums comparison at line 6067 in mercury.js:
return rangy.serializeSelection(this.getSelection(), false);
by changing false
to true
antonkulaga commented
Has this error been fixed?
jcoyne commented
When I try @eanekrasov's fix, then I get this:
Uncaught ReferenceError: selection is not defined mercury.js?body=1:6208
Mercury.Region.Modules.HtmlSelection.replaceSelection mercury.js?body=1:6208
Mercury.Region.Html.addAction.link html.js?body=1:250
Mercury.Region.Region.handleAction mercury.js?body=1:3213
delegateEvents.mercury:action mercury.js?body=1:3442
(anonymous function) mercury.js?body=1:2154
Events.trigger mercury.js?body=1:1201
Mercury.registerPlugin.insert mercury.js?body=1:7320
Mercury.Plugin.Plugin.triggerAction mercury.js?body=1:1608
(anonymous function) mercury.js?body=1:7315
Events.trigger mercury.js?body=1:1201
Plugin.Modal.Modal.onSubmit mercury.js?body=1:7420
Mercury.View.Modules.FormHandler.onFormSubmit mercury.js?body=1:2293
(anonymous function) mercury.js?body=1:2154
jQuery.event.dispatch jquery.js?body=1:4625
elemData.handle jquery.js?body=1:4293