block.defaultType parameter
Use the block.defaultType parameter to set or query the default block type. The default block type is used when no block type is specified. Many of the default editor actions use the default block type to determine how they should behave.
Availability
query command
set command
current parameter
default parameter
install parameter
Scope
block.defaultType is scoped to the current view.
current.block.defaultType is scoped to the current view.
default.block.defaultType is globally scoped.
install.block.defaultType is globally scoped.
Syntax
query block.defaultType set block.defaultType [ default | stream | character | rectangle | element ] query current.block.defaultType query default.block.defaultType set default.block.defaultType [ install | stream | character | rectangle | element ] query install.block.defaultType
Parameters
default If you specify the default parameter for the set block.defaultType command, the current view will use the value of default.block.defaultType for the default block type. stream If you specify the stream parameter for the set block.defaultType command, the current view will use stream as the default block type. If you specify the stream parameter for the set default.block.defaultType command, all of the document views that have block.defaultType set to default will use stream as the default block type. character If you specify the character parameter for the set block.defaultType command, the current view will use character as the default block type. If you specify the character parameter for the set default.block.defaultType command, all of the document views that have block.defaultType set to default will use character as the default block type. rectangle If you specify the rectangle parameter for the set block.defaultType command, the current view will use rectangle as the default block type. If you specify the rectangle parameter for the set default.block.defaultType command, all of the document views that have block.defaultType set to default will use rectangle as the default block type. element If you specify the element parameter for the set block.defaultType command, the current view will use element as the default block type. If you specify the element parameter for the set default.block.defaultType command, all of the document views that have block.defaultType set to default will use element as the default block type. install If you specify the install parameter for the set default.block.defaultType command, all of the views that have block.defaultType set to default will use the value of install.block.defaultType for the default block type.
Description
If you do not specify any of the parameters for the set block.defaultType command, default is assumed. If you do not specify any of the parameters for the set default.block.defaultType command, install is assumed.
The query current.block.defaultType command returns the default block type for the current view. That is, it will return one of stream, character, rectangle, or element.
Examples
query block.defaultType set block.defaultType character query current.block.defaultType query default.block.defaultType set default.block.defaultType rectangle query install.block.defaultType
block command
query command
set command
current parameter
default parameter
install parameterblockMarkAll action
blockMarkBottom action
blockMarkDown action
blockMarkEnd action
blockMarkHome action
blockMarkLeft action
blockMarkNextWord action
blockMarkPageDown action
blockMarkPageLeft action
blockMarkPageRight action
blockMarkPageUp action
blockMarkPrevWord action
blockMarkRight action
blockMarkToMouse action
blockMarkTop action
blockMarkUp action
blockMarkWord action
blockMarkWordAtMouse action