diff --git a/tinymce/xowl_client/editor_plugin.js b/tinymce/xowl_client/editor_plugin.js index a386720..762b57f 100644 --- a/tinymce/xowl_client/editor_plugin.js +++ b/tinymce/xowl_client/editor_plugin.js @@ -1,7 +1,7 @@ /** * plugin for tinymce and wordpress accessing xowl service */ -(function ($) { + (function ($) { var SELECTED_ENTITY_CLASS = 'data-xowl-selected'; // clean contents before send to Xowl Service var XowlService = function () { @@ -116,33 +116,34 @@ title: 'Select Entity Dialog', body: [listBox], buttons: [{ - text: 'Aceptar', - onclick: function () { - XowlClient.changeUri(entityPosition, currentUrl); - this.parent().fire('submit'); - } - }, { - text: 'Cancelar', - onclick: function () { - this.parent().fire('cancel'); - } - }, { - text: 'Remove', - onclick: function () { - XowlClient.removeEntity(entityPosition); - this.parent().fire('cancel'); - } - }], + text: 'Aceptar', + onclick: function () { + XowlClient.changeUri(entityPosition, currentUrl); + this.parent().fire('submit'); + } + }, { + text: 'Cancelar', + onclick: function () { + this.parent().fire('cancel'); + } + }, { + text: 'Remove', + onclick: function () { + XowlClient.removeEntity(entityPosition); + this.parent().fire('cancel'); + } + }], // rebuild content inside textarea onsubmit: function () { XowlClient.setSelected(entityPosition); } }); - } - }); +} +}); // init xsa object ed.on('LoadContent', function () { }); + // Enhance your content ed.addButton('xowl_button', { title: 'Enhance your content', @@ -152,7 +153,25 @@ $loader = $("
", { "class": 'loader' }); - $("