+ <object pk="show_splitmodal" model="toolbar.scriptlet">
+ <field type="TextField" name="code">var cm = panel.texteditor;
+
+cm.focus();
+
+var text = cm.selection();
+
+if(!text) return;
+
+
+
+cm.replaceSelection('<include-tag-placeholder />');
+
+var fulltext = cm.getCode();
+
+
+
+$('#split-dialog').jqmShow({
+
+ selection: text, fulltext: fulltext,
+
+ success: function(uri) {
+
+ editor.refreshPanels();
+
+ },
+
+ failure: function() { cm.undo(); }
+
+}) ;
+
+
+
+</field>
+ </object>