includes/clientside/tinymce/plugins/inlinepopups/editor_plugin_src.js
changeset 1193 e3b94bd055dc
parent 778 57ce13805b6f
equal deleted inserted replaced
1192:5882f0eebb34 1193:e3b94bd055dc
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 961 2008-11-14 10:31:07Z spocke $
     2  * $Id: editor_plugin_src.js 1150 2009-06-01 11:50:46Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
    48 			if (!f.inline)
    48 			if (!f.inline)
    49 				return t.parent(f, p);
    49 				return t.parent(f, p);
    50 
    50 
    51 			// Only store selection if the type is a normal window
    51 			// Only store selection if the type is a normal window
    52 			if (!f.type)
    52 			if (!f.type)
    53 				t.bookmark = ed.selection.getBookmark('simple');
    53 				t.bookmark = ed.selection.getBookmark(1);
    54 
    54 
    55 			id = DOM.uniqueId();
    55 			id = DOM.uniqueId();
    56 			vp = DOM.getViewPort();
    56 			vp = DOM.getViewPort();
    57 			f.width = parseInt(f.width || 320);
    57 			f.width = parseInt(f.width || 320);
    58 			f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0);
    58 			f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0);
   264 				DOM.show('mceModalBlocker'); // Reduces flicker in IE
   264 				DOM.show('mceModalBlocker'); // Reduces flicker in IE
   265 			} else
   265 			} else
   266 				DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1);
   266 				DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1);
   267 
   267 
   268 			if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel))
   268 			if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel))
   269 				DOM.setStyles('mceModalBlocker', {position : 'absolute', width : vp.w - 2, height : vp.h - 2});
   269 				DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
   270 
   270 
   271 			t.focus(id);
   271 			t.focus(id);
   272 			t._fixIELayout(id, 1);
   272 			t._fixIELayout(id, 1);
   273 
   273 
   274 			// Focus ok button
   274 			// Focus ok button
   356 					'class' : 'mceEventBlocker ' + (t.editor.settings.inlinepopups_skin || 'clearlooks2'),
   356 					'class' : 'mceEventBlocker ' + (t.editor.settings.inlinepopups_skin || 'clearlooks2'),
   357 					style : {zIndex : t.zIndex + 1}
   357 					style : {zIndex : t.zIndex + 1}
   358 				});
   358 				});
   359 
   359 
   360 				if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel))
   360 				if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel))
   361 					DOM.setStyles('mceEventBlocker', {position : 'absolute', width : vp.w - 2, height : vp.h - 2});
   361 					DOM.setStyles('mceEventBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
   362 
   362 
   363 				eb = new Element('mceEventBlocker');
   363 				eb = new Element('mceEventBlocker');
   364 				eb.update();
   364 				eb.update();
   365 
   365 
   366 				// Setup placeholder
   366 				// Setup placeholder