1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html> 3<head> 4<title>Delete Paragraph</title> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6<meta content="noindex, nofollow" name="robots"> 7<script language="javascript"> 8 9var oEditor = window.parent.InnerDialogLoaded() ; 10var oParaDel; 11 12window.onload = function () { 13 // First of all, translate the dialog box texts 14 // oEditor.FCKLanguageManager.TranslatePage( document ); 15 16//oEditor.FCKCommands.GetCommand('Blockquote').Execute() ; 17 18window.parent.SetOkButton( true ) ; 19window.parent.document.getElementById('btnOk').value = "Apply" 20 21window.parent.delPara_help = function() { 22 delPara_hide_el('delParaDiv'); 23 delPara_hide_el('delParaLabel'); 24 delPara_display_el('delParaHelp', 'block'); 25 26}; 27IconPath = oEditor.FCK.Config['PluginsPath']+ 'paradelete/delete_p_lg.gif' 28//IconPath = FCKConfig.PluginsPath + 'paradelete/delete_p.gif' ; 29 30window.parent.delPara_helpClose = function() { 31 32 delPara_hide_el('delParaHelp'); 33 34 delPara_display_el('delParaDiv', 'block'); 35 delPara_display_el('delParaLabel', 'inline'); 36 37}; 38 39var dlg_TitleArea = window.parent.document.getElementById('TitleArea'); 40 41dlg_TitleArea.innerHTML += 42 " " + 43 44 "<a href='#' " + 45 " class = 'PopupTitle' style='font-size: 9pt; text-decoration: none;' " + 46 " onclick = 'delPara_help();'>info</a>"+ 47 48 49 " " + 50 51 "<a href='#' " + 52 " class = 'PopupTitle' style='font-size: 8pt; text-decoration: none;' " + 53 " onclick = 'delPara_helpClose();'>info close</a>   "; 54 55var text = delPara_GetSelectedHTML(); 56 57var str = (typeof text == 'object') ? text.toString() : text; 58 59 60if(!text || str.length == 0) { 61 delPara_hide_el('delParaDiv'); 62 delPara_hide_el('delParaLabel'); 63 delPara_display_el('error_msg', 'inline'); 64 return; 65} 66var dom = document.getElementById('delParaDiv'); 67//dom.innerHTML = text; 68 69var oParaDel = new oEditor.FCK.paraDelObject(oEditor); 70str = oParaDel.debug(); 71dom.innerHTML = str; 72oParaDel.replace(); 73} 74 75 76 77 78function Ok() { 79// return false; 80 return true; 81} 82 83 84function delPara_helpClose() { 85 delPara_hide_el('delParaHelp'); 86 87 delPara_display_el('delParaDiv', 'block'); 88 delPara_display_el('delParaLabel', 'inline'); 89 90} 91 92function delPara_display_el(id, type) { 93 94 var dom = document.getElementById(id); 95 dom.style.display = type; 96 97} 98 99 100function delPara_hide_el(id) { 101 var dom = document.getElementById(id); 102 dom.style.display = "none"; 103} 104 105 106 107 108function delPara_GetSelectedHTML() { 109 var oSelection; 110 if (document.selection) { // IE 111 oSelection = oEditor.FCK.EditorDocument.selection.createRange().text; 112//oSelectionobj = oEditor.FCK.EditorDocument.selection.createRange() 113 } 114 else if (window.getSelection) { // Mozilla, Safari (ok, I know: Safari ain't supported yet! 115 oSelection = oEditor.FCK.EditorWindow.getSelection(); 116 } 117 else if (document.getSelection) { 118 oSelection = oEditor.FCK.EditorDocument.getSelection(); // Mozilla, Netscape, Opera 119 } 120 121 return oSelection; 122 123} 124</script> 125 126<style type="text/css"> 127#delParaDiv { 128 background-color: white; font-size: 9pt; overflow:scroll; height: 80px; 129 border: #3B3B1F solid 1px; color #3B3B1F 130 } 131#delParaHelp { display: none; background-color: #F1F1E3; font-size: 10pt; padding: 10px; 132 background-color: white; font-size: 9pt; } 133#delParaLabel, .labelText { font-size: 9pt; color #3B3B1F; } 134 135</style> 136 137</head> 138<body> 139<div id="delParaHelp"> 140Each press of the Return key creates a new paragraph. 141Single-spacing occurs only within paragraphs. This tool substitutes line breaks 142for paragraphs, making it possible to have a sequence of single-spaced short lines. 143To remove the space from between two lines, the paragraph markup must be removed from both 144the lines. 145</div> 146 147<div id="delParaDiv"> 148</div> 149<div id="delParaLabel"> 150Click <b>Apply</b> to remove HTML paragraph markup from text. 151</div> 152<div id="error_msg" style="display:none" class="labelText"> 153 You must first select a line of text. Then either click the icon<br> 154 <center> <img style = "background-color:white" src = "delete_p_lg.gif"></center> 155 or right click at the selected text and click the <b><P> to <BR></b> menu item. 156</div> 157</body> 158</html> 159