diff -r 5841df0ab575 -r dffcbfbc4e59 includes/clientside/tinymce/plugins/fullpage/editor_plugin_src.js --- a/includes/clientside/tinymce/plugins/fullpage/editor_plugin_src.js Mon May 05 20:06:37 2008 -0400 +++ b/includes/clientside/tinymce/plugins/fullpage/editor_plugin_src.js Mon May 05 20:08:44 2008 -0400 @@ -1,5 +1,5 @@ /** - * $Id: editor_plugin_src.js 593 2008-02-13 13:00:12Z spocke $ + * $Id: editor_plugin_src.js 827 2008-04-29 15:02:42Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. @@ -78,7 +78,7 @@ }, _setContent : function(ed, o) { - var t = this, sp, ep, c = o.content; + var t = this, sp, ep, c = o.content, v, st = ''; // Parse out head, body and footer c = c.replace(/<(\/?)BODY/gi, '<$1body'); @@ -104,8 +104,26 @@ t.head = low(t.head); t.foot = low(t.foot); } else { - t.head = ''; - t.head += '\n\n\nUntitled document\n\n\n'; + t.head = ''; + if (ed.getParam('fullpage_default_xml_pi')) + t.head += '\n'; + + t.head += ed.getParam('fullpage_default_doctype', ''); + t.head += '\n\n\n' + ed.getParam('fullpage_default_title', 'Untitled document') + '\n'; + + if (v = ed.getParam('fullpage_default_encoding')) + t.head += '\n'; + + if (v = ed.getParam('fullpage_default_font_family')) + st += 'font-family: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_font_size')) + st += 'font-size: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_text_color')) + st += 'color: ' + v + ';'; + + t.head += '\n\n'; t.foot = '\n\n'; } },