includes/clientside/tinymce/plugins/preview/editor_plugin_src.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 778 57ce13805b6f
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 444 2007-11-26 16:17:54Z spocke $
     2  * $Id: editor_plugin_src.js 537 2008-01-14 16:38:33Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
     8 (function() {
     8 (function() {
     9 	tinymce.create('tinymce.plugins.Preview', {
     9 	tinymce.create('tinymce.plugins.Preview', {
    10 		init : function(ed, url) {
    10 		init : function(ed, url) {
    36 				ed.windowManager.open({
    36 				ed.windowManager.open({
    37 					file : ed.getParam("plugin_preview_pageurl", null),
    37 					file : ed.getParam("plugin_preview_pageurl", null),
    38 					width : w,
    38 					width : w,
    39 					height : h
    39 					height : h
    40 				}, {
    40 				}, {
    41 					editor_id : editor_id,
       
    42 					resizable : "yes",
    41 					resizable : "yes",
    43 					scrollbars : "yes",
    42 					scrollbars : "yes",
    44 					inline : 1,
    43 					inline : 1
    45 					content : ed.getContent(),
       
    46 					content_css : ed.getParam("content_css")
       
    47 				});
    44 				});
    48 			} else {
    45 			} else {
    49 				win = window.open("", "mcePreview", "menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width=" + w + ",height="  + h);
    46 				win = window.open("", "mcePreview", "menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width=" + w + ",height="  + h);
    50 				html = "";
    47 				html = "";
    51 				c = ed.getContent();
    48 				c = ed.getContent();