DHTMLEdit - Pre Sale Questions
disallowing resize and move, and html source quality, and various, and license issues
Thread Starter: Mutley2003 Started: 7/8/2008 3:41 AM UTC
Replies: 1
disallowing resize and move, and html source quality, and various, and license issues
Hi,

1. In my application I do NOT want users to be able to resize or move ANYTHING .. . I see you have toggleAbsolute,which I assume is a wrapper around execCommand(IDM_2D_POSITION) , but that does not seem to work reliably in the demo (I cannot seem to ensure it stays off) and in any event I want to DISABLE RESIZE AND DRAG. From MSDN it seems like I could use IDM_DISABLE_EDITFOCUS_UI (to turn off handles and hatched border) - do you have that implemented? and if so, any method of indicating the active element?

2. You have a property SourceCodePreservation. I read the description "
   Specifies whether the HTML source code representation provided by the MSHTML engine should be preserved.
   If source code preservation is used, the component does nearly nothing with the HTML source code representation provided     by the MSHTML engine. (The component only works around a few known bugs in the MSHTML-generated HTML source).
"  but I don't quite understand it.   In my experience, the MSHTML engine makes a VERY nasty mess  of the source and I am not aware of any feature that can stop it doing that. So, have you written a lot of code  to "fix" the innerhtml somehow looking at the original source at the same time, or ?

Perhaps I can make it clearer - suppose I have formatted my original html in a way I like. Then I edit it with your component . Is it going to 'look like' my original html with the whitespace preserved etc, or is it going to be constructed  from the innerhtml or by walking the dom? (maybe the latter would work for preserving whitespace, I guess it would ).  I am not trying to get trade secrets from you, I am VERY interested in buying and I don't want to attempt to replicate all the hard work you have done.

3. Your undo/redo seems  impressive, particularly since IDM_UNDO is not implemented? . Can you tell me what limitations there are on the undo?


4. Can I use my own popup/context menu, like on the TembeddedWB? And get access to the element at the time of popup? This is particularly important to me since I don't want users to be able to insert stuff in inappropriate places, and I also want to control the available feature set depending upon the underlying element (eg if right clicking on an image, I might want a special menu)


5. Actually, in the documentation, I did not see the document (IHtmlDocument2) property exposed .. can I get to it?

6. You have exposed quite a few events . I did not see OnDrag there .. can I add my own event sinks?


7. Licensing .. I could not find your license conditions on your web site. My app is primarily oriented towards CSS with some HTML authoring. Can you confirm that I can distribute the compiled exe royalty free.


Sorry about all the questions, but I want to be sure that I am better off spending the money for a professional component rather than writing my own.


Thanks


Re: disallowing resize and move, and html source quality, and various, andlicense issues
Hi:

1. In my application I do NOT want users to be able to resize or move
ANYTHING .. . I see you have toggleAbsolute,which I assume is a wrapper
around execCommand(IDM_2D_POSITION) , but that does not seem to work
reliably in the demo (I cannot seem to ensure it stays off) and in any
event I want to DISABLE RESIZE AND DRAG. From MSDN it seems like I could
use IDM_DISABLE_EDITFOCUS_UI (to turn off handles and hatched border) - do
you have that implemented? and if so, any method of indicating the active
element?

You can execute any MSHTML command via IOleCommandTarget::Exec. And you can
get the active element via IHTMLSelectionObject::createRange. There are many
examples in the support forum.

Perhaps I can make it clearer - suppose I have formatted my original html
in a way I like. Then I edit it with your component . Is it going to 'look
like' my original html with the whitespace preserved etc, or is it going
to be constructed from the innerhtml or by walking the dom? (maybe the
latter would work for preserving whitespace, I guess it would ).

If SourceCodePreservation is False, the HTML source will be constructed by
walking the DOM. If SourceCodePreservation is True, the HTML source will be
taken from MSHTML. But neither of the settings will construct something that
looks like your original HTML.

3. Your undo/redo seems  impressive, particularly since IDM_UNDO is not
implemented? . Can you tell me what limitations there are on the undo?

No limitations.

4. Can I use my own popup/context menu, like on the TembeddedWB? And get
access to the element at the time of popup? This is particularly important
to me since I don't want users to be able to insert stuff in inappropriate
places, and I also want to control the available feature set depending
upon the underlying element (eg if right clicking on an image, I might
want a special menu)

Yes, using the PopupMenu property and the OnContextPopup event.

5. Actually, in the documentation, I did not see the document
(IHtmlDocument2) property exposed .. can I get to it?

Yes, using the GetDOM method.

6. You have exposed quite a few events . I did not see OnDrag there .. can
I add my own event sinks?

The component has the OnDragOver and OnDragDrop events (for non-OLE drag and
drop). You can add your own events (e.g., for OLE drag and drop) if you have
the source code of the component.

7. Licensing .. I could not find your license conditions on your web site.
My app is primarily oriented towards CSS with some HTML authoring. Can you
confirm that I can distribute the compiled exe royalty free.

Yes, certainly.


-Nicholas