SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 190 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


Let's use the FCKEditor component to enter a celebrity's biography at the
AddCelebrity page. All we need to do is to change the type of component used to
edit the biography property in the page template:


t:value="celebrity.biography"/>

The result of this change might look a bit overwhelming:
Advanced Components
[ 152 ]
By default, the component is huge as it displays all the goodies made available by
the original FCKEditor. In many cases you will not need all that, and there is an
easy way to both change the number of displayed toolbars and change the size of
the component.
There are three toolbar sets available??”Default, Simple and Medium, and we
can choose using the toolbarSet parameter. There are also width and height
parameters that allow us to specify the size of the component. Here is one possible
combination of settings:
t:value="celebrity.biography"
t:toolbarSet="Simple" t:width="300" t:height="150"/>
And here is how the resulting component looks:
Well, I have to admit that to get the component properly positioned in Internet
Explorer 7, I had to use some additional markup, to place the FCKEditor component
and its label inside a simple table, like this:






Chapter 5
[ 153 ]



Pages:
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6