Home Forums General XMetaL Discussion ActiveDocument.doctype returns empty string Reply To: ActiveDocument.doctype returns empty string

Derek Read

Reply to: ActiveDocument.doctype returns empty string

If Plain Text view is enabled (it is unless you or some other customization has called DisablePlainTextView <- several CMS integrations do this) just make sure you wrap your code in an if block that checks the ViewType. Something like this:
[code]
if(ActiveDocument.ViewType < 2) {
  //run my code
}
else {
  //don't run my code
}[/code]

Reply

Products
Downloads
Support