summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.page
blob: 2b6c7a7a5502945eeaf70d11dc7f92efd8936162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<com:TContent ID="body">

<h1>THtmlArea4 Samples</h1>

<table class="sampletable">

<tr><td class="samplenote">
THtmlArea4 with default settings:
</td><td class="sampleaction">
<com:THtmlArea4 ID="HtmlArea1" />
<com:TButton Text="Submit" OnClick="button1Clicked" />
<br/>
<com:TLiteral Encode="true" ID="Result1" />
</td></tr>

<tr><td class="samplenote">
THtmlArea4 with manually set options
</td><td class="sampleaction">
<com:THtmlArea4 ID="HtmlArea2" Width="670px" Height="300px">
  <prop:Options>
  	resize: false
    plugins: "charmap code wordcount"
    toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code charmap | ",
  </prop:Options>
</com:THtmlArea4>
<com:TButton Text="Submit" OnClick="button2Clicked" />
<br/>
<com:TLiteral Encode="true" ID="Result2" />
</td></tr>

<tr><td class="samplenote">
THtmlArea4 with visual editing disabled:
</td><td class="sampleaction">
<com:THtmlArea4 ID="HtmlArea3" EnableVisualEdit="false" />
<br/>
<com:TButton Text="Submit" OnClick="button3Clicked" />
<br/>
<com:TLiteral Encode="true" ID="Result3" />
</td></tr>

<tr><td class="samplenote">
Read-only THtmlArea:
</td><td class="sampleaction">
<com:THtmlArea4 ID="HtmlArea4" ReadOnly="true" Text="Sample html text: <b>bold</b> <i>italic</i>" />
</td></tr>

</table>

</com:TContent>