ZetaHtmlEditControl icon indicating copy to clipboard operation
ZetaHtmlEditControl copied to clipboard

How do I display an HTML document in "htmlEditUserControl?

Open it19862 opened this issue 6 years ago • 0 comments

How to use "ZetaHtmlEditControl"? If I understand the documentation correctly, then I need to place "htmlEditUserControl2" on "WinForm". Or did I misunderstand?

"htmlEditUserControl2.DocumentText = @" ";" does not work

`using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


// 
using ZetaHtmlEditControl;

namespace rsh
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string text1;

            text1 = @"<body>
            <a href=""http://cmstexst1:81/Page_2"">Ссылка на страницу Page_2</a><br>
                    		<p>page1 paragraph 1</p>
                    		<a href=""NamePage2#Page2_Paragraph_2"">Page2Prgrph_2</a><br>	
                        <p>text</p>
                    		<p>page1 paragraph 2</p>
                    		<a href=""NamePage2#Page2_Paragraph_3"">Page2Prgrph_3</a><br>
                    		<p>text</p>
                    		<p>page1 paragraph 3</p>
                    		<p>text</p>
                           <div class=""spoiler"">
                         <input type=""checkbox"" >
                         <div class=""box"">
                               Текст сообщения в спойлере.
                         </div>
                    </div>";

            extendedWebBrowser1.DocumentText = text1;

            // htmlEditUserControl2.se

            htmlEditUserControl2.DocumentText = @"";

            // extendedWebBrowser1.DocumentText = @"";

        }
    }
}

4015 4016

it19862 avatar May 15 '18 12:05 it19862