|
From: Jon O. <jon...@us...> - 2008-05-21 21:59:32
|
Update of /cvsroot/mxbb/mx_simpledoc/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17906 Modified Files: simpledoc_index.tpl simpledoc_view.tpl simpledoc_view_plain.tpl Log Message: rewritten, a lot, for tinyMCE Index: simpledoc_index.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/templates/_core/simpledoc_index.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc_index.tpl 27 Feb 2008 21:34:27 -0000 1.2 --- simpledoc_index.tpl 21 May 2008 21:59:24 -0000 1.3 *************** *** 4,8 **** <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/DynamicTree.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulTabs/XulTabs.js"></script> ! <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/SimpleTextEditor/SimpleTextEditor.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/management.js.php"></script> --- 4,65 ---- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/DynamicTree.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulTabs/XulTabs.js"></script> ! <!-- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/SimpleTextEditor/SimpleTextEditor.js"></script> --> ! <script language="javascript" type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> ! ! <script language="javascript" type="text/javascript"> ! tinyMCE.init({ ! mode : "none", ! elements : "body", ! ! language : "{LANG}", ! docs_language : "{LANG}", ! ! apply_source_formatting : "true", ! cleanup : "true", ! inline_styles : "true", ! convert_fonts_to_spans : "true", ! fix_list_elements : "true", ! fix_table_elements : "true", ! force_p_newlines : "true", ! remove_trailing_nbsp : "true", ! ! plugins : "table,advimage,advlink,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable", ! ! theme : "advanced", ! theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6", ! ! theme_advanced_fonts : "Verdana=verdana,arial,helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace", ! ! theme_advanced_buttons1_add_before : "newdocument,separator", ! theme_advanced_buttons1_add : "fontselect,fontsizeselect", ! ! theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor", ! theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator", ! ! theme_advanced_buttons3_add_before : "tablecontrols,separator", ! theme_advanced_buttons3_add : "print,separator,ltr,rtl,separator,fullscreen", ! ! theme_advanced_disable : "", ! ! theme_advanced_toolbar_location : "top", ! theme_advanced_toolbar_align : "left", ! ! theme_advanced_path_location : "bottom", ! theme_advanced_statusbar_location : "bottom", ! ! content_css : "{TEMPLATE}", ! theme_advanced_styles : "Tiny Text=copyright;Small Text=gensmall;Normal Text=genmed;Big Text=gen;Code=code;Quote=quote", ! ! table_styles : "Layout=forumline", ! table_cell_styles : "Table cell 1=row1;Table cell 2=row2;Table cell 3=row3", ! table_row_styles : "Table row 1=oddrow", ! table_default_border : "0", ! ! document_base_url : "{PATH}index.php", ! relative_urls : "true", ! ! extended_valid_elements : "a[*],img[*],table[*],tr[*],td[*],div[*],form[*],input[*]" ! }); ! </script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/management.js.php"></script> *************** *** 15,18 **** --- 72,76 ---- <script type="text/javascript"> /* fix for IE not loading wysiwyg editor images */ + /* var imgs = ["bold.gif", "center.gif", "help.gif", "image.gif", "indent.gif", "italic.gif", "left.gif", "link.gif", "ol.gif", "outdent.gif", "right.gif", "ul.gif", "underline.gif", "viewsource.gif"]; for (var k = 0; k < imgs.length; ++k) { *************** *** 21,24 **** --- 79,83 ---- imgs[k] = image; } + */ </script> *************** *** 32,35 **** --- 91,96 ---- </script> + + <style type="text/css"> <!-- *************** *** 89,93 **** .DynamicTree .text { padding: 1px; cursor: pointer; } ! .DynamicTree .text-active { background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, --- 150,154 ---- .DynamicTree .text { padding: 1px; cursor: pointer; } ! .DynamicTree .text-active { color: {T_BODY_VLINK}; background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, *************** *** 288,291 **** --- 349,353 ---- /* SimpleDoc [www.gosu.pl], style for texteditor */ + /* .ste { background-color: #ffffff; } .ste .bar { padding: 3px; border: {T_TH_COLOR1} 1px; border-style: solid solid none solid; } *************** *** 298,301 **** --- 360,364 ---- .ste .separator {background: #ffffff; width: 0px; height: 18px; border-left: {T_TH_COLOR1} 1px solid; border-right: {T_TH_COLOR3} 1px solid; margin: 0 5px; } .ste .source { color: {T_BODY_TEXT}; padding-top: 5px; } + */ --> </style> *************** *** 303,307 **** <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> ! <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> --- 366,370 ---- <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> ! <td class="rowxx"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> *************** *** 354,358 **** <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> ! <td id="left" class="row1"> <div class="DynamicTree"> <table cellspacing="0" cellpadding="0"> --- 417,421 ---- <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> ! <td id="left" class="rowxx"> <div class="DynamicTree"> <table cellspacing="0" cellpadding="0"> *************** *** 448,457 **** <tr> <td class="wrap2"> - <div id="tabs-loading">{L_LOADING}</div> - <div id="tabs-saving">{L_SAVING}</div> <div id="tabs-data"></div> </td> </tr> </table> </td> </tr> --- 511,520 ---- <tr> <td class="wrap2"> <div id="tabs-data"></div> </td> </tr> </table> + <div id="tabs-loading">{L_LOADING}</div> + <div id="tabs-saving">{L_SAVING}</div> </td> </tr> Index: simpledoc_view.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/templates/_core/simpledoc_view.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** simpledoc_view.tpl 9 Sep 2007 20:51:28 -0000 1.1 --- simpledoc_view.tpl 21 May 2008 21:59:24 -0000 1.2 *************** *** 43,47 **** #tabs-data table { font-family: {T_FONTFACE1}; - font-size: 11px; color: {T_BODY_TEXT}; background: {T_TR_COLOR1}; --- 43,46 ---- *************** *** 51,55 **** .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } ! .t2 { background: {T_TR_COLOR2}: 3px 8px; } #saved { color: {T_BODY_TEXT}; } --- 50,54 ---- .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } ! .t2 { background: {T_TR_COLOR2}: padding: 3px 8px; } #saved { color: {T_BODY_TEXT}; } *************** *** 85,89 **** .DynamicTree .text { padding: 1px; cursor: pointer; } ! .DynamicTree .text-active { background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, --- 84,88 ---- .DynamicTree .text { padding: 1px; cursor: pointer; } ! .DynamicTree .text-active { color: {T_BODY_VLINK}; background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, *************** *** 270,279 **** --> </style> ! <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> ! <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"><tr> ! <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> --- 269,278 ---- --> </style> ! <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> ! <td class="rowxx"> <table cellspacing="0" cellpadding="0" width="100%"><tr> ! <td class="rowxx"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> *************** *** 281,285 **** <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} {MANAGE}</span> ! </td> </tr> <tr> --- 280,284 ---- <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} {MANAGE}</span> ! </td> </tr> <tr> *************** *** 288,296 **** <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> ! <td id="left" class="row1"> <div class="DynamicTree"> <table cellspacing="0" cellpadding="0"> <tr> ! <td class="row2"> <div class="wrap1"> <div class="top">{L_TOC}</div> --- 287,295 ---- <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> ! <td id="left" class="rowxx"> <div class="DynamicTree"> <table cellspacing="0" cellpadding="0"> <tr> ! <td class="row2"> <div class="wrap1"> <div class="top">{L_TOC}</div> *************** *** 336,339 **** </tr> </table> - - --- 335,336 ---- Index: simpledoc_view_plain.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/templates/_core/simpledoc_view_plain.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc_view_plain.tpl 27 Feb 2008 21:34:27 -0000 1.2 --- simpledoc_view_plain.tpl 21 May 2008 21:59:25 -0000 1.3 *************** *** 60,64 **** .DynamicTree .text { padding: 1px; cursor: pointer; } ! .DynamicTree .text-active { background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, --- 60,64 ---- .DynamicTree .text { padding: 1px; cursor: pointer; } ! .DynamicTree .text-active { color: {T_BODY_VLINK}; background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, *************** *** 248,254 **** <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> ! <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"><tr> ! <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> --- 248,254 ---- <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> ! <td class="rowxx"> <table cellspacing="0" cellpadding="0" width="100%"><tr> ! <td class="rowxx"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> *************** *** 262,266 **** <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> ! <td class="row1"> <iframe width="100%" height="500" src="{PUBLISH_DIR}" frameborder="0"> If you can see this, your browser doesn't understand IFRAME. However, we'll still <a href="{PUBLISH_DIR}">link</a> you to the file. --- 262,266 ---- <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> ! <td class="rowxx"> <iframe width="100%" height="500" src="{PUBLISH_DIR}" frameborder="0"> If you can see this, your browser doesn't understand IFRAME. However, we'll still <a href="{PUBLISH_DIR}">link</a> you to the file. |