ToggleProtectPara Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:20

Description

Enables/disables/toggle a special 'protect' editing mode. When this mode is enabled, in the source editing window with hidden markup or in the WYSIWYG pane, it is no longer possible to delete end of paragraphs and paragraph styles and their associated bells. This is useful when editing headlines. There HasProtectPara function returns true when the 'protect' mode is enabled.

At the beginning of every time editing session the protect mode is disabled. The protect mode is a property of the editing session, not of the text - i.e. if the text is being edited on the Articles main tab in both source and WYSIWYG mode one session can be in protect mode and the other one no.

Syntax

Text.ToggleProtectPara (int1)

int1        

SwitchOn = enable protection

SwitchOff = disable protection

SwitchToggle = toggles protection

Return value

Error code

Context

Text designer commands

See also