WysOnly

Build 1501 on 14/Nov/2017  This topic last edited on: 9/May/2012, at 13:05

Description

Displays only WYSIWYG view, keeping the article tree display as-is.

Syntax

Wys_Only

Code

  <ShellCommand(CanExecute:="Ena_HasCurrentArticle")> _

  Public Sub WysOnly()

    If Ted.GetActiveArticle.TestToggleTreePanel Then  ' tree is displayed

      Ted.SetDesignerLayout(7, Nothing)

    Else                                              ' tree is not displayed

      Ted.SetDesignerLayout(3, Nothing)

    End If

  End Sub