Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Problems making online web editor?
December 29, 2009, 10:56 am
rate this thread
There is a lot of commands you can use such as
iView.document.execCommand('bold', false, null);
However, when I try to make my text a heading, that is with h1 to
h6, the command doesn't work. The command for h1 is:
if(hType != '')
iView.document.execCommand('formatblock', false, hType);
<option value="">-- Heading --</option>
<option value="Heading 1">H1</option>
<option value="Heading 2">H2</option>
<option value="Heading 3">H3</option>
<option value="Heading 4">H4</option>
<option value="Heading 5">H5</option>
<option value="Heading 6">H6</opt
When I try to select one of the options, say I select h2 from the drop down
nothing happens. If am using the bold text command, that function works
What is wrong here? Anybody..
Thank you very much for your help.
Re: Problems making online web editor?
the lovely and talented Jan T.
broadcast on alt.html:
That isn't HTML. HTML does not have commands. It is a Markup
Language (that's what the ML in HTML stands for), not a programming
Lars Eighner <http://larseighner.com/ Warbama's Afghaninam day: 27
659.5 hours since Warbama declared Viet Nam II.
Warbama: An LBJ for the Twenty-First century. No hope. No change.