close

Filter

loading table of contents...

Studio Developer Manual / Version 2107

Table Of Contents

7.3.5 Disabling Preview for Specific Document Types

For some document types a suitable preview representation is not easily generated. This applies to some built-in document types like Dictionary and EditorPreferences, but also to very technical document types storing CSS or script code.

The method getDocumentTypesWithoutPreview() from the editor context object grants access to an array of document type names for which no preview should be shown. Like in the case of document types excluded from creation as shown in the previous section, you can simply push additional document types into the mutable array returned from the method.

You can also use the ConfigureDocumentTypes plugin to specify document types without preview, like in the following excerpt from BlueprintFormsStudioPlugin.mxml.

<editor:ConfigureDocumentTypes
        names="CMAction,CMCSS,..."
        preview="false"/>

Example 7.19. Defining document types without preview


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.