Home Forums DITA and XMetaL Discussion On_Document_Open_View not fired for DITA maps? Reply To: On_Document_Open_View not fired for DITA maps?

jperkins

Reply to: On_Document_Open_View not fired for DITA maps?

I managed to display the Save As… dialog automatically for new maps by editing DITAMAPMANAGERjsDitaMapHandler.js:

[pre]DITAMapHandler.prototype.initFromString = function (filePath, mapAsString, resourceLocator) {
  // …body of function is unchanged
  this.SaveMap();
}[/pre]
Not ideal, but it works. If anyone has any advice on a cleaner way to implement this, especially if it can be put in a customization macro, it would be much appreciated.

Thanks!

Reply

Products
Downloads
Support