Trying to do a "Make your own Shakespeare Play Handbill" thing, which needs very basic text format controls.
Following works fine if some text is actually selected and pass eg prop as "Bold" but if use control at end of line it does not set the property from that point. The MS wysiwig HTML editor uses exactly same code and that works ok!
with (document.getElementById("handbill"))
{
focus();
rng = document.selection.createRange();
rng.execCommand(prop);
}
Much ta for any ideas (again!)
Following works fine if some text is actually selected and pass eg prop as "Bold" but if use control at end of line it does not set the property from that point. The MS wysiwig HTML editor uses exactly same code and that works ok!
with (document.getElementById("handbill"))
{
focus();
rng = document.selection.createRange();
rng.execCommand(prop);
}
Much ta for any ideas (again!)
Comment