M
Mike
Hello,
I am developing a simple web editor to enable my users to update their websites and add simple formatting to the text.
The page content is recovered from a SQL Server database and displayed in the Microsoft DHTML Edit control ( I am working in Visual Studio 2003 - VB ). I have experimented with the ExecCommand function but all I want to do is select some text - press a button to make that selected text <h1>some text</h1>. I have a button that reads the clipboard content, adds the correct HTML tags around the text, and then pastes back to the DHTML Edit Control.
However, when I paste the contents of the clipboard back to the DHTML Edit control I get this :
<h1>some text</h1> instead of some text , and I have no control over where the new text appears!
How can I select text, enclose in the desired HTML Tag and then replace the selected text with the new HTML formatted text?
Any help would be really appreciated as I have spent some days on this!
Thank you
Mike Lowe
Application Developer
Rhondda-Cynon-Taf County Borough Council
Education & Children's Services
I am developing a simple web editor to enable my users to update their websites and add simple formatting to the text.
The page content is recovered from a SQL Server database and displayed in the Microsoft DHTML Edit control ( I am working in Visual Studio 2003 - VB ). I have experimented with the ExecCommand function but all I want to do is select some text - press a button to make that selected text <h1>some text</h1>. I have a button that reads the clipboard content, adds the correct HTML tags around the text, and then pastes back to the DHTML Edit Control.
However, when I paste the contents of the clipboard back to the DHTML Edit control I get this :
<h1>some text</h1> instead of some text , and I have no control over where the new text appears!
How can I select text, enclose in the desired HTML Tag and then replace the selected text with the new HTML formatted text?
Any help would be really appreciated as I have spent some days on this!
Thank you
Mike Lowe
Application Developer
Rhondda-Cynon-Taf County Borough Council
Education & Children's Services