Þetta snýst allt um execCommands :)
Sjá nánar á:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/commandids.aspfunction feitur()
{
iView.document.execCommand('bold', false, null);
}
ForeColor: Get or set the foreground color of the selected region.
BackColor: Get or set the background color of the selected region.
Bold: Toggles between the select region being bolded.
Italic: Toggles between the selected region being italicised.
Underline: Toggles between the select region being underlined.
Copy: Copies the selected region to the clipboard.
Cut: Removes the selected region from the document.
Paste: Adds data from clipboard to region (if applicable).
InsertHorizontalRule: Adds a horizontal rule to the region.
InsertImage: Displays an IE defined modal dialog that contains full image selection features, alt tag modification, border setting, etc.
InsertMarquee: Converts the selected text into a marque.
InsertSelectDropDown: Adds a drop down list to the region.
Print: Displays the windows print dialog so that the region can be printed.
Refresh: Refreshes the region.
CreateLink: Displays an IE defined modal dialog that lets you add a hyperlink using either selected text or new text.
InsertUnorderedList: Toggles between the selected text being an unordered list and normal text.
<br><br>Kv. svg
#3723