Пример #1
0
        private void SetViewTextFromEditor()
        {
            wbViewText.DocumentText = GetDialogHTML(tbEditor.Text);

            string strPlaneText = SHWebUtil.RemoveTag(tbEditor.Text);

            lbTextLen.Text = "글자수 : " + Convert.ToString(strPlaneText.Length);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }