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
.
<editor:configureDocumentTypes names="CMAction,CMCSS,..." preview="false"/>
Example 7.18. Defining document types without preview