private void SetViewTextFromEditor() { wbViewText.DocumentText = GetDialogHTML(tbEditor.Text); string strPlaneText = SHWebUtil.RemoveTag(tbEditor.Text); lbTextLen.Text = "글자수 : " + Convert.ToString(strPlaneText.Length); }
private string ToBody_Preview(SHXmlCore core) { String ret = String.Empty; ret = Properties.Resources.quest_preview_template.Replace("[[QUEST_TITLE]]", this.title); ret = ret.Replace("[[QUEST_DESC]]", SHWebUtil.ReplaceDialogTextForWeb(core.GetSafeString(this.desc))); return(ret); }
public string GetDialogHTML(string szText) { szText = SHWebUtil.ReplaceDialogTextForWeb(szText); szText = Properties.Resources.dialog_preview_element_template.Replace("[[DIALOG_TEXT]]", szText); szText = Properties.Resources.dialog_preview_template.Replace("[[DIALOG_TEXT_ELEMENT]]", szText); szText = Properties.Resources.xhtml_template.Replace("[[CONTENT_BODY]]", szText); return(szText); }
public override string ToBody(SHXmlCore core) { String ret = String.Empty; ret = SHWebUtil.ReplaceDialogTextForWeb(this.text); ret = Properties.Resources.dialog_preview_element_template.Replace("[[DIALOG_TEXT]]", ret); foreach (SHDialogSelect select in dataList) { if (select == null) { continue; } ret += select.ToBody(core); } return(ret); }