+Editor.prototype.postSplitRequest = function(s, f)
+{
+ $.ajax({
+ url: $('#split-dialog form').attr('action'),
+ dataType: 'html',
+ success: s,
+ error: f,
+ type: 'POST',
+ data: $('#split-dialog form').serialize()
+ });
+};
+
+
+Editor.prototype.allPanels = function() {
+ return $('#' + this.rootDiv.attr('id') +' > *.panel-wrap', this.rootDiv.parent());
+};
+
+Editor.prototype.registerScriptlet = function(scriptlet_id, scriptlet_func)
+{
+ // I briefly assume, that it's verified not to break the world on SS
+ if (!this[scriptlet_id]) {
+ this[scriptlet_id] = scriptlet_func;
+ }
+};
+
+Editor.prototype.callScriptlet = function(scriptlet_id, panel, params) {
+ var func = this[scriptlet_id];
+ if(!func) {
+ throw 'No scriptlet named "' + scriptlet_id + '" found.';
+ }
+ return func(this, panel, params);
+};