My favorites | Sign in
Project Home Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<title>Bold Italic Underline</title>

<div id="toolbar">
<button onclick="document.execCommand('bold',null,null);">B</button>
<button onclick="document.execCommand('italic',null,null);">I</button>
<button onclick="document.execCommand('underline',null,null);">U</button>
</div>

<div id="editor" contenteditable="true" style="width:100%; height:20em; border: solid thin grey;">
Better than notepad
</div>

<div id="command">
<button onclick="alert(document.getElementById('editor').innerHTML)">save</button>
</div>

Change log

r24 by grr...@szsz.pl on Aug 16, 2010   Diff
Minimal web browser (app mode)

Go to: 
Project members, sign in to write a code review

Older revisions

r19 by grr...@szsz.pl on Oct 18, 2009   Diff
content-editable - editor test
All revisions of this file

File info

Size: 537 bytes, 17 lines
Powered by Google Project Hosting