close

Filter

loading table of contents...

Studio Developer Manual / Version 2301

Table Of Contents

9.5.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 global @coremedia/studio-client.main.editor-components/sdk/editorContext 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.ts.

import ConfigureDocumentTypes from "@coremedia/studio-client.main.editor-components/configuration/ConfigureDocumentTypes";

//...
new ConfigureDocumentTypes({
    names: "CMAction,CMCSS,...",
    preview: false,
})

Example 9.25. 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.