BVB Source Codes

Pcook CMS bubble guest v3.0 SDCMS version Show paste_word.htm Source code

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download paste_word.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code - Type:.htm
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <link href="../style/editor.css" rel="stylesheet" type="text/css">
  5. <script>
  6.   var sLangDir=window.opener.oUtil.langDir;
  7.   document.write("<scr"+"ipt src='../language/"+sLangDir+"/paste_word.js'></scr"+"ipt>");
  8. </script>
  9. <script>writeTitle()</script>
  10. <script>
  11. function doCmd(sCmd,sOption)
  12.     {
  13.     var idSource = document.getElementById("idSource").contentWindow;
  14.     idSource.document.execCommand(sCmd, false, sOption);
  15.     }
  16.  
  17. function bodyOnLoad()
  18.     {
  19.     var idSource = document.getElementById("idSource").contentWindow;
  20.     var sourceDocBody = idSource.document.body;
  21.     sourceDocBody.innerHTML = "";
  22.     sourceDocBody.style.cssText="overflow-x:scroll;overflow-y:scroll;white-space:nowrap";
  23.     sourceDocBody.clearAttributes;
  24.  
  25.     idSource.document.designMode="on";
  26.     idSource.focus();
  27.     }
  28.    
  29. function doInsert()
  30.     {
  31.     var obj = window.opener.oUtil.obj;
  32.  
  33.     var sHTML=fixWord();
  34.  
  35.     obj.insertHTML(sHTML);
  36.    
  37.     obj.cleanDeprecated();
  38.     }
  39.  
  40. function fixWord()
  41.     {
  42.     for (var i=0;i<idSource.document.body.getElementsByTagName("*").length;i++)
  43.        {
  44.    idSource.document.body.getElementsByTagName("*")[i].removeAttribute("class");
  45.    idSource.document.body.getElementsByTagName("*")[i].removeAttribute("style");
  46.        }
  47.    var str=idSource.document.body.innerHTML;
  48.    str=String(str).replace(/<\\?\?xml[^>]*>/g,"");
  49.     str=String(str).replace(/<\/?o:p[^>]*>/g,"");
  50.     str=String(str).replace(/<\/?u1:p[^>]*>/gi,"");
  51.     str=String(str).replace(/<\/?v:[^>]*>/g,"");
  52.     str=String(str).replace(/<\/?o:[^>]*>/g,"");
  53.     str=String(str).replace(/<\/?st1:[^>]*>/g,"");
  54.     str=String(str).replace(/<\/?w:wrap[^>]*>/gi,"");
  55.     str=String(str).replace(/<\/?w:anchorlock[^>]*>/gi,"");
  56.  
  57.     str=String(str).replace(/&nbsp;/g,"");//<p>&nbsp;</p>
  58.  
  59.     str=String(str).replace(/<\/?SPAN[^>]*>/g,"");
  60.     str=String(str).replace(/<\/?FONT[^>]*>/g,"");
  61.     str=String(str).replace(/<\/?STRONG[^>]*>/g,"");
  62.  
  63.     str=String(str).replace(/<\/?H1[^>]*>/g,"");
  64.     str=String(str).replace(/<\/?H2[^>]*>/g,"");
  65.     str=String(str).replace(/<\/?H3[^>]*>/g,"");
  66.     str=String(str).replace(/<\/?H4[^>]*>/g,"");
  67.     str=String(str).replace(/<\/?H5[^>]*>/g,"");
  68.     str=String(str).replace(/<\/?H6[^>]*>/g,"");
  69.  
  70.     str=String(str).replace(/<\/?P[^>]*><\/P>/g,"");
  71.    
  72.     str=String(str).replace(/<!--\[if[^>]*>/gi, "");
  73.    str=String(str).replace(/<!--\[endif\]-->/gi, "");
  74.     str=String(str).replace(/<!\[endif\]-->/gi, "");
  75.    
  76.     return str;
  77.     }
  78. </script>
  79. </head>
  80. <body onload="loadTxt();bodyOnLoad()" style="overflow:hidden;margin:0;">
  81.  
  82. <table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0">
  83. <tr>
  84. <td nowrap style="padding:2px;padding-bottom:3px">&nbsp;<span id=txtLang name=txtLang>Paste Word content here</span>:
  85. </td>
  86. </tr>
  87. <tr>
  88. <tr>
  89. <td style="height:100%">
  90.     <iframe style="width:100%;height:100%;" name="idSource" id="idSource"></iframe>    
  91. </td>
  92. </tr>
  93. <tr>
  94. <td class="dialogFooter" style="padding:13;padding-top:7;padding-bottom:7;" align="right">
  95.     <input type="button" name=btnCancel id=btnCancel value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  96.     <input type="button" name=btnOk id=btnOk value=" ok " onclick="doInsert();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  97. </td>
  98. </tr>
  99. </table>
  100.  
  101. </body>
  102. </html>
downloadpaste_word.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code
Related Source Codes/Software:
Oo 126 CMS movie site system - This procedure ASP + ACC/ASP + SQL, using new kern... 2016-09-21
IDC sales web site - Beautiful IDC sales web site source code 2016-09-21
NPOINT virtual host v1.7.0 formal version management system - The system main function is introduced 2016-09-21
Classified information network business in suzhou - Overall module: classification of supply and deman... 2016-09-21
Jie Yang v0.6.3 article system - System functions: 1, the system settings A confi... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
C9 v2.1.1 static post system - Program USES ASP + ACC structure design and develo... 2016-09-21
Imitation green download station perfect version - Before increased | software home page, on the basi... 2016-09-21
Subdomain hosting edition v1.9 s taobao, pat - The background site admin 2016-09-21
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top