Re: nsIHTMLEditor vs. nsIDOMNSHTMLDocument, General Editor questions
| Newsgroups | gmane.comp.mozilla.devel.editor |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <5c12f9a8-0640-4464-89e8-aa0ced9be72a@d21g2000prf.googlegroups.com> |
On Dec 3, 7:17 pm, Neil <[email protected]> wrote: > [email protected] wrote: > >Thanks for the quick response. I was able to enable/disable the object resizing controls on <img>, <table> using this technique. However, things like <div>, <input type="text"> still won't show a resizer. Are there more XPCOM interfaces involved? > > The author of the editor module probably decided that it didn't make > sense to resize those elements (although I believe you can resize a > <div> if you float or absolutely position it). > > >I also notice there are several editor interfaces such as nsIEditor, nsIHTMLEditor and nsIPlaintTextEditor. Generally how can I get hold of these editors? > > Once you have an nsIEditor you can QueryInterface it to an > nsIPlaintextEditor etc. > > -- > Warning: May contain traces of nuts. You are right, the absolutely positioned div is resizable. I guess I can use it to emulate a resize handle on other elements. Thanks for the tip.