From 644c42556be8323b3bb4df40e092d8a3a53dc4a3 Mon Sep 17 00:00:00 2001 From: "tg@umbraco.com" Date: Tue, 4 Sep 2012 10:27:57 -0200 Subject: [PATCH] Updates icon of tinyMCE embed plugin so it's the same for both the toolbar and prevalue editor --- src/Umbraco.Web.UI/Umbraco.Web.UI.csproj | 2 +- src/Umbraco.Web.UI/Web.config | 239 ++++++++++++++++++ .../umbraco/developer/Xslt/editXslt.aspx | 15 +- .../plugins/umbracoembed/editor_plugin_src.js | 2 +- .../plugins/umbracoembed/img/embed.gif | Bin 0 -> 260 bytes 5 files changed, 252 insertions(+), 6 deletions(-) create mode 100644 src/Umbraco.Web.UI/Web.config create mode 100644 src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/img/embed.gif diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index eab5f9a350..94e93c9556 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -740,7 +740,7 @@ - + diff --git a/src/Umbraco.Web.UI/Web.config b/src/Umbraco.Web.UI/Web.config new file mode 100644 index 0000000000..4a07691103 --- /dev/null +++ b/src/Umbraco.Web.UI/Web.config @@ -0,0 +1,239 @@ + + + +
+
+ +
+ +
+
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Umbraco.Web.UI/umbraco/developer/Xslt/editXslt.aspx b/src/Umbraco.Web.UI/umbraco/developer/Xslt/editXslt.aspx index 2c11e6b2a6..4e96930591 100644 --- a/src/Umbraco.Web.UI/umbraco/developer/Xslt/editXslt.aspx +++ b/src/Umbraco.Web.UI/umbraco/developer/Xslt/editXslt.aspx @@ -55,10 +55,17 @@ function xsltVisualize() { - xsltSnippet = UmbEditor.GetSelection(); - if (xsltSnippet == '') - UmbEditor.GetCode() - + xsltSnippet = UmbEditor.IsSimpleEditor + ? jQuery("#<%= editorSource.ClientID %>").getSelection().text + : UmbEditor._editor.selection(); + + if (xsltSnippet == '') { + xsltSnippet = UmbEditor.IsSimpleEditor + ? jQuery("#<%= editorSource.ClientID %>").val() + : UmbEditor.GetCode(); + // alert('Please select the xslt to visualize'); + } + UmbClientMgr.openModalWindow('<%= umbraco.IO.IOHelper.ResolveUrl(umbraco.IO.SystemDirectories.Umbraco) %>/developer/xslt/xsltVisualize.aspx', 'Visualize XSLT', true, 550, 650); } diff --git a/src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/editor_plugin_src.js b/src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/editor_plugin_src.js index 2404fd4362..3ec4f6a2d2 100644 --- a/src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/editor_plugin_src.js +++ b/src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/editor_plugin_src.js @@ -39,7 +39,7 @@ ed.addButton('umbracoembed', { title : 'Embed third party media', cmd : 'mceUmbracoEmbed', - image : url + '/img/embed.png' + image : url + '/img/embed.gif' }); // Add a node change handler, selects the button in the UI when a image is selected diff --git a/src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/img/embed.gif b/src/Umbraco.Web.UI/umbraco_client/tinymce3/plugins/umbracoembed/img/embed.gif new file mode 100644 index 0000000000000000000000000000000000000000..76216085d3238ca7384b28c712aa7f14f771ed72 GIT binary patch literal 260 zcmZ?wbhEHb6k!lyI3mojeEIU`<~B)D!CA9sy}i+8u*3Pnh2D?v^X8vlVYa_MV8=H5 zb*B^0hR%AJVQZlo8Jm`K@I!tw|e4FHR$QNaKJ literal 0 HcmV?d00001