User:PerfektesChaos/js/editToolStrIns/User Customization/Example

The example below shows how a user might configure the personal appearance of the tool via   collection.

Definitions are limited to a situation with real editing (which is even more helpful when including from a separate page).

To avoid syntax errors an empty application object is created if not available by project setting.

A user object is created and equipped with most interesting points on top. The first two items inherit their label from project standard. Then TeX business can be selected. The options are completed by the project standard drop down not mentioned yet, with exception of Cyrillic.

Finally, cookie usage is requested.

If not defined by project a  statement may follow. It may be included anyway and will be ignored if loaded twice.

application registration
The following code will register a user defined configuration function. wouldn‘t be required any longer. Registration should be done before loading the gadget. An arbitrary user defined function will receive the application object  and might look like:

Toolbar surrogate
The following specification will generate three links as occurring in the very first toolbar:

Container for gadget
The following code will discard all tool areas and will create a new target area just before (above) the textarea edit form. The target area may be decorated utilizing the  selector.

User defined function
The following function may be referenced in a   specification (titled  ) as advanced [5] feature.

The function definition may be stored in  as well.