Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Removed leftover references to "image editor" functionality (re…

…moved in 2.3) from tiny_mce_improvements.js
  • Loading branch information...
commit 926aa8f30eac66036adb90235c90e4d1d11a2a48 1 parent 0c81515
@chillu chillu authored
Showing with 1 addition and 65 deletions.
  1. +1 −65 javascript/tiny_mce_improvements.js
View
66 javascript/tiny_mce_improvements.js
@@ -564,13 +564,8 @@ ImageForm.prototype = {
if(this.selectedImage) {
this.selectedImage.insert();
}
- },
-
- handleaction_editimage: function() {
- if(this.selectedImage) {
- this.selectedImage.edit();
- }
}
+
}
ImageThumbnail = Class.create();
@@ -584,42 +579,6 @@ ImageThumbnail.prototype = {
return false;
},
- edit: function() {
- var windowWidth = Element.getDimensions(window.top.document.body).width;
- var windowHeight = Element.getDimensions(window.top.document.body).height;
- var iframe = window.top.document.getElementById('imageEditorIframe');
- if(iframe != null) {
- iframe.parentNode.removeChild(iframe);
- }
- iframe = window.top.document.createElement('iframe');
- var fileToEdit = this.href;
- iframe.setAttribute("src","admin/ImageEditor?fileToEdit=" + fileToEdit);
- iframe.id = 'imageEditorIframe';
- iframe.style.width = windowWidth - 6 + 'px';
- iframe.style.height = windowHeight + 10 + 'px';
- iframe.style.zIndex = "1000";
- iframe.style.position = "absolute";
- iframe.style.top = "8px";
- iframe.style.left = "8px";
- window.top.document.body.appendChild(iframe);
- var divLeft = window.top.document.createElement('div');
- var divRight = window.top.document.createElement('div');
- divLeft.style.width = "8px";
- divLeft.style.height = "300%";
- divLeft.style.zIndex = "1000";
- divLeft.style.top = "0";
- divLeft.style.position = "absolute";
- divRight.style.width = "10px";
- divRight.style.height = "300%";
- divRight.style.zIndex = "1000";
- divRight.style.top = "0";
- divRight.style.position = "absolute";
- divRight.style.left = Element.getDimensions(divLeft).width + Element.getDimensions(iframe).width - 4 + 'px';
- window.top.document.body.appendChild(divLeft);
- window.top.document.body.appendChild(divRight);
- return;
- },
-
insert: function() {
var formObj = $('Form_EditorToolbarImageForm');
var altText = formObj.elements.AltText.value;
@@ -702,29 +661,6 @@ function reselectImage(transport) {
this.addToTinyMCE = this.addToTinyMCE.bind(this);
}
-function imageEditorClosed() {
- if(self.refreshAsset) {
- refreshAsset();
- }
- if($('Form_EditorToolbarImageForm')) {
- if($('Form_EditorToolbarImageForm').style.display != "none") {
- // FInd the selected image
- links = $('Image').getElementsByTagName('a');
- for(i =0; link = links[i]; i++) {
- if(link.className == 'selectedImage') {
- var quesmark = link.href.lastIndexOf('?');
- selectedimage = link.href.substring(0, quesmark);
- break;
- }
- }
-
- // Trick the folder dropdown into registering a change, so the image thumbnails are reloaded
- folderID = $('Form_EditorToolbarImageForm_FolderID').value;
- $('Image').ajaxGetFiles(folderID, null, reselectImage);
- }
- }
-}
-
FlashForm = Class.extend('ToolbarForm');
FlashForm.prototype = {
initialize: function() {

0 comments on commit 926aa8f

Please sign in to comment.
Something went wrong with that request. Please try again.