Tutorial: Using a Custom URL Chooser

Using a Custom URL Chooser

Some editing tasks require the user to link several resources. For example,
when inserting an image, the user must provide the URL of that image. The
same scenario applies for links between XML document and DITA conrefs.

You can improve the user experience by implementing a custom URL chooser that
allows choosing a resource in your CMS. This can be achieved by extending the
sync.api.UrlChooser class.

The following code snippet implements a dummy UrlChooser that shows a prompt
to the user that asks for the URL.