private void _Init(string id) { InitToolButton( string.IsNullOrEmpty(id) ? $"{ToolText}{TitleText}{Editor.indexTools++}" : id, Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, FindOffImage), Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, FindOverImage), TitleText, true); SetPopupContents(105, 305, true, false); string content = string.Empty; content += "<table width=283>"; content += " <tr>"; content += " <td>"; content += " <table width=\'100%\'>"; content += " <tr>"; content += " <td width=\'5\'></td>"; content += " <td>"; content += " <table cellpadding=\'0\' cellspacing=\'0\' border=\'0\' width=\'270\'>"; content += " <tr>"; content += " <td>$FIND$ <span> : </span></td>"; content += " <td width=\'232\'>"; content += " <input id=\'$EDITOR_ID$_HTB_F_find\' style=\'width:229;height:20\' name=\'$EDITOR_ID$_HTB_F_find\' size=\'20\' onkeyup=\\\"HTB_F_CheckFind('$EDITOR_ID$');\\\"></td>"; content += " </tr>"; content += " </table>"; content += " </td>"; content += " </tr>"; content += " </table>"; content += " <table align=center width=\'280\'>"; content += " <tr>"; content += " <td nowrap><input type=\'checkbox\' name=\'$EDITOR_ID$_HTB_F_caseSensitive\' id=\'$EDITOR_ID$_HTB_F_caseSensitive\'>$CASE_SENSITIVE$</td>"; content += " <td nowrap><input type=\'checkbox\' name=\'$EDITOR_ID$_HTB_F_wholeWord\' id=\'$EDITOR_ID$_HTB_F_wholeWord\'>$WHOLE_WORD$</td>"; content += " <td width=5></td>"; content += " <td><input type=\'button\' value=\' $NEXT$ \' id=\'$EDITOR_ID$_HTB_F_next\' onclick=\\\"HTB_Find('$EDITOR_ID$',document.getElementById('$EDITOR_ID$_HTB_F_find').value,document.getElementById('$EDITOR_ID$_HTB_F_caseSensitive').checked, document.getElementById('$EDITOR_ID$_HTB_F_wholeWord').checked);\\\"></td>"; content += " </tr>"; content += " </table>"; content += " </td>"; content += " </tr>"; content += "</table>"; this.PopupContents.ContentText = content; //this.ClientSideClick = "HTB_SetPopupPosition('$EDITOR_ID$','$POPUP_ID$'); HTB_InitFind(); var selection = eval(\'$EDITOR_ID$_State\').selection; if (selection != null) document.getElementById('HTB_F_find').value = selection.text;"; }
private void _Init(string id) { this.ID = id.IsNullOrWhiteSpace() ? $"_toolImage{Editor.indexTools++}" : id; this.ImageURL = Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, ImageUrlValue); this.OverImageURL = Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, OverImageUrlValue); this.ToolTip = ImageText; this.PopupContents.Height = PopupContentsHeight; this.PopupContents.Width = PopupContentsWidth; this.PopupContents.TitleText = ImageEditorText; this.UsePopupOnClick = true; this.PopupContents.ContentText = HtmlTemplate; this.ClientSideClick = ClientSideClickValue; }
private void _Init(string id) { this.ID = string.IsNullOrEmpty(id) ? ToolFlashValue + Editor.indexTools++ : id; this.PopupContents.ID = ID + FlashPopup; this.ImageURL = Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, FlashOff); this.OverImageURL = Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, FlashOver); this.ToolTip = Flash; this.PopupContents.TitleText = FlashEditor; this.PopupContents.ShowShadow = false; this.UsePopupOnClick = true; var content = new StringBuilder(); AppendTableClsPopupHeader(content); AppendTableClsPopupMiddle(content); AppendTableClsPopupFooter(content); this.PopupContents.ContentText = content.ToString(); }
private void _Init(string id) { InitToolButton( string.IsNullOrEmpty(id) ? $"{ToolText}{ReplaceText}{Editor.indexTools++}" : id, Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, ReplaceOffImage), Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, ReplaceOverImage), TitleText, true); SetPopupContents(165, 325, false, false); string content = string.Empty; /*content = "<table height=128>"; * content += "<tr>"; * content += "<td>Find</td>"; * content += "<td><input type=\'textbox\' name=\'find\' id=\'find\' size=\'30\' value=\'\'></td>"; * content += "</tr>"; * content += "<tr>"; * content += "<td>Replace</td>"; * content += "<td><input type=\'textbox\' name=\'replace\' id=\'replace\' size=\'30\' value=\'\'></td>"; * content += "</tr>"; * content += "<tr>"; * content += "<td colspan=2>"; * content += "<input type=\'checkbox\' name=\'caseSensitive\' id=\'caseSensitive\'>Case Sensitive"; * content += "<input type=\'checkbox\' name=\'wholeWord\' id=\'wholeWord\'>Whole Word"; * content += "<input type=\'checkbox\' name=\'queryPrompt\' id=\'queryPrompt\'>Prompt"; * content += "</td>"; * content += "</tr>"; * content += "<tr>"; * content += "<td colspan=2 align=center><input type=\'button\' value=\'Replace\' onclick=\\\"HTB_FindAndReplace('$EDITOR_ID$','$POPUP_ID$',find.value,replace.value,caseSensitive.checked, wholeWord.checked, queryPrompt.checked);\\\"></td>"; * content += "</tr>"; * content += "</table>";*/ content += "<table height=128>"; content += " <tr>"; content += " <td>$FIND$</td>"; content += " <td><input type='textbox' name='$EDITOR_ID$_HTB_FR_find' id='$EDITOR_ID$_HTB_FR_find' size='35' value='' onkeyup=\\\"HTB_FR_CheckFindAndReplace('$EDITOR_ID$');\\\"></td>"; content += " </tr>"; content += " <tr>"; content += " <td>$REPLACE$</td>"; content += " <td><input type='textbox' name='$EDITOR_ID$_HTB_FR_replace' id='$EDITOR_ID$_HTB_FR_replace' size='35' value=''></td>"; content += " </tr>"; content += " <tr>"; content += " <td colspan=2 align=center>"; content += " <input type='checkbox' name='$EDITOR_ID$_HTB_FR_caseSensitive' id='$EDITOR_ID$_HTB_FR_caseSensitive'>$CASE_SENSITIVE$"; content += " <input type='checkbox' name='$EDITOR_ID$_HTB_FR_wholeWord' id='$EDITOR_ID$_HTB_FR_wholeWord'>$WHOLE_WORD$"; content += " </td>"; content += " </tr>"; content += " <tr>"; content += " <td colspan=2 align=center>"; content += " <input type='button' value='$REPLACE_ALL$' id='$EDITOR_ID$_HTB_FR_replaceAll' onclick=\\\"HTB_ReplaceAll('$EDITOR_ID$',$EDITOR_ID$_HTB_FR_find.value,$EDITOR_ID$_HTB_FR_replace.value,$EDITOR_ID$_HTB_FR_caseSensitive.checked, $EDITOR_ID$_HTB_FR_wholeWord.checked);\\\">"; content += " <input type='button' value='$REPLACEB$' id='$EDITOR_ID$_HTB_FR_replaceOne' onclick=\\\"HTB_Replace('$EDITOR_ID$',$EDITOR_ID$_HTB_FR_find.value,$EDITOR_ID$_HTB_FR_replace.value,$EDITOR_ID$_HTB_FR_caseSensitive.checked, $EDITOR_ID$_HTB_FR_wholeWord.checked);\\\">"; content += " <input type='button' value=' $NEXT$ ' id='$EDITOR_ID$_HTB_FR_next' onclick=\\\"HTB_Find('$EDITOR_ID$',$EDITOR_ID$_HTB_FR_find.value,$EDITOR_ID$_HTB_FR_caseSensitive.checked, $EDITOR_ID$_HTB_FR_wholeWord.checked);\\\">"; content += " <input type='button' value='$CANCEL$' id='$EDITOR_ID$_HTB_FR_cancel' onclick=\\\"ATB_hidePopup('$POPUP_ID$')\\\">"; content += " </td>"; content += " </tr>"; content += "</table>"; this.PopupContents.ContentText = content; //this.ClientSideClick = "HTB_SetPopupPosition('$EDITOR_ID$','$POPUP_ID$'); HTB_InitFindAndReplace(); var selection = eval(\'$EDITOR_ID$_State\').selection; if (selection != null) HTB_FR_find.value = selection.text;"; }
private void _Init(string id) { InitToolButton( string.IsNullOrEmpty(id) ? $"{ToolText}{SpellCheckerText}{Editor.indexTools++}" : id, Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, SpellOffImage), Fx1ConditionalHelper <string> .GetFx1ConditionalValue(string.Empty, SpellOverImage), TitleText, false); SetPopupContents(105, 305, true, false); string content = string.Empty; content += "<div>"; content += "<table cellpadding=0 cellspacing=0>"; content += " <tr>"; content += " <td colspan=2><b>$NOTINDIC$ :</b></td>"; content += " </tr>"; content += " <tr>"; content += " <td colspan=2><input id=\'$EDITOR_ID$_NotInDictionary\' name=\'$EDITOR_ID$_NotInDictionary\' type=textbox style=\'width:100%\'></td>"; content += " </tr>"; content += " <tr>"; content += " <td>"; content += " <table>"; content += " <tr>"; content += " <td><b>$CHANGETO$ :</b></td>"; content += " </tr>"; content += " <tr>"; content += " <td><input id=\'$EDITOR_ID$_ChangeTo\' type=textbox style=\'width:180px;\'></td>"; content += " </tr>"; content += " <tr>"; content += " <td><b>$SUGGESTION$:</b></td>"; content += " </tr>"; content += " <tr>"; content += " <td>"; content += " <select id=\'$EDITOR_ID$_Select\' onchange=\\\"HTB_SC_OnChangeChoice('$EDITOR_ID$',this);\\\" style=\'width:180px;height:88px;visibility:hidden\' size=\'5\'>"; content += " </select>"; content += " </td>"; content += " </tr>"; content += " </table>"; content += " </td>"; content += " <td valign=top>"; content += " <table>"; content += " <tr><td> </td></tr>"; content += " <tr>"; content += " <td><input type=button value=\'$BUTTON_IGNORE$\' style=\'width:90px\' onclick=\\\"HTB_SC_Ignore('$EDITOR_ID$');\\\"></td>"; content += " <td><input type=button value=\'$BUTTON_IGNORE_ALL$\' style=\'width:90px\' onclick=\\\"HTB_SC_IgnoreAll('$EDITOR_ID$');\\\"></td>"; content += " </tr>"; content += " <tr>"; content += " <td><input type=button value=\'$BUTTON_REPLACE$\' style=\'width:90px\' onclick=\\\"HTB_SC_Replace('$EDITOR_ID$');\\\"></td>"; content += " <td><input type=button value=\'$BUTTON_REPLACE_ALL$\' style=\'width:90px\' onclick=\\\"HTB_SC_ReplaceAll('$EDITOR_ID$');\\\"></td>"; content += " </tr>"; content += " <tr>"; content += " <td><input type=button value=\'$BUTTON_CLOSE$\' style=\'width:90px\' onclick=\\\"HTB_SC_Close('$POPUP_ID$');\\\"></td>"; content += " </tr>"; content += " </table>"; content += " </td>"; content += " </tr>"; content += "</table>"; content += "</div>"; this.PopupContents.ContentText = content; this.ClientSideClick = "$POST_BACK$;"; }