X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f31bb368a2cad9a61e4fc652fa4b40c4114a128c..a5999e7b582435f9a77b5847f1590ebb8d7ccb36:/apps/explorer/fixtures/przyciski.xml diff --git a/apps/explorer/fixtures/przyciski.xml b/apps/explorer/fixtures/przyciski.xml index 2065b151..afa1deb2 100755 --- a/apps/explorer/fixtures/przyciski.xml +++ b/apps/explorer/fixtures/przyciski.xml @@ -192,6 +192,19 @@ + + Wydziel + split-text-from-xmleditor + [] + show_splitmodal + + + 0 + + + + + Zamień cudzysłowy zamien-cudzyslowy @@ -1177,4 +1190,39 @@ if (!text) { panel.fireEvent('contentChanged'); + + 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(); } + +}) ; + + + + +