WSC Dialog Options for HTML Editable Controls

wsc_schemaIdentifier MANDATORY

Description:

wsc_schemaIdentifier option sets a schema identifier (look&feel) of WSC Dialog.

Parameter type:Number
Default value:

18

Possible values:
  • 18 open as a separate pop-up window.
  • 118 open as a modal window.

Example:

schemaIdentifier: 118,

Back to the top...


ctrl MANDATORY

Description:

ctrl option defines an element identifier.

Parameter type:String
Default value:

None

Possible values:Any existing element ID.

Example:

ctrl: 'your_element_ID',

Back to the top...


lang MANDATORY

Description:

lang option sets a language short code of the default language that will be used for spell checking. 

Parameter type:String
Default value:

en_US (American English)

Possible values:

Example:

lang: 'en_GB',

Back to the top...


title

Description:

title option sets a title name of WSC Dialog.

Parameter type:String
Default value:

WebSpellChecker

Possible values:Any name of a title.

Example:

title: 'WebSpellChecker Dialog',

Back to the top...


customDictionaryIds

Description:

customDictionaryIds option specifies an identifier of custom dictionary.

Parameter type:String
Default value:

None

Possible values:

IDs of custom dictionaries separated with commas (' , ').

Example:

customDictionaryName: '1,3001';

Back to the top...


userDictionaryName

Description:

userDictionaryName option predefines a specific user dictionary that will be used with WSC Dialog.

Parameter type:Array
Default value:

None

Possible values:

Any name of a user dictionary.

Example:

userDictionaryName: 'user_dictionary_name';

Back to the top...


cmd

Description:

cmd option sets an active tab which should be shown on the dialog opening.

Parameter type:String
Default value:

spell

Possible values:
  • spell – spell checking tab;
  • thes thesaurus tab;
  • grammar grammar checking tab.

Example:

cmd: 'thes';

Back to the top...


height

Description:

height option sets the height in pixels of WSC Dialog.

Parameter type:Number
Default value:

534

Possible values:Any height size in pixels.

Example:

height: 534;

Back to the top...


width

Description:

width option sets a dialog width in pixels.

Parameter type:Number
Default value:

514

Possible values:Any width size in pixels.

Example:

width: 514;

Back to the top...


top

Description:

top option sets a top margin value in pixels (initial –Y coordinate).

top option is applicable and can be used only if schemaIdentifier is set to 18.

Parameter type:Number
Default value:

0

Possible values:Any top margin value in pixels.

Example:

top: 0;

Back to the top...


left

Description:

left option sets a left margin value in pixels (initial –X coordinate).

left option is applicable and can be used only if schemaIdentifier is set to 18.

Parameter type:Number
Default value:

0

Possible values:Any left margin value in pixels.

Example:

left: 0;

Back to the top...


autoClose

Description:

autoClose option defines if the WSC Dialog window should be auto-closed.

Parameter type:String
Default value:

None

Possible values:
  • no no auto-closing.
  • yes WSC Dialog will be closed after all misspellings are replaced with suggested corrections or ignored.
  • nomisspellings – WSC Dialog will be closed if no misspellings detected in the given text.

Example:

autoClose: 'yes',

Back to the top...



  • No labels