HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
How to set LiveResize & 2D-position
Posted by: vikas (---.dsl-chd.eth.net)
Date: Monday, 06-Sep-2004, 12:16:41

How can I set these two features for MSHTML editor?
We have tried
this.htmlEditor1.Document.execCommand("2D-Position",true,true);
this.htmlEditor1.Document.execCommand("LiveResize",true,true);

but doesn't work. Same commands run for the normal javascript based editors.

Any help will be greatly appriciated..

Re: How to set LiveResize & 2D-position
Posted by: vikas (---.dsl-chd.eth.net)
Date: Monday, 06-Sep-2004, 13:07:18

Though it works if we attach the two commands to buttons on the form

Re: How to set LiveResize & 2D-position
Posted by: Tim (---.gotadsl.co.uk)
Date: Monday, 06-Sep-2004, 13:14:44

So when are the commands called in the scenario that doesn't work?

Could it be that either the document is not ready, or that the document is reloaded between when you call the commands and when you test the feature?

Tim

Re: How to set LiveResize & 2D-position
Posted by: poiuycat (---.222.208.218.klj03-home.tm.net.my)
Date: Thursday, 27-Jan-2011, 02:39:28

the "Document" should be "ducument" java is case sensitive

this.htmlEditor1.Document.execCommand("2D-Position",true,true);



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
ExXEU
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.