Richeditor: link form

This form is used for the add/edit link screen in the richeditor.

File path/forms/richeditor/link.xml
Form IDricheditor.link
<?xml version="1.0" encoding="UTF-8"?>

<form feature="cms">
    <tab id="basic" sortorder="10" title="cms:ckeditor.linkpicker.basic.tab">
        <!-- we will show/hide these fieldsets depending on the selected link type -->
        <fieldset id="sitetree" sortorder="10">
            <field sortorder="10" name="page"       control="sitetreePagePicker" required="true"  label="cms:ckeditor.linkpicker.page.label" />
            <field sortorder="20" name="title"      control="textinput"          required="false" label="cms:ckeditor.linkpicker.title.label" placeholder="cms:ckeditor.linkpicker.title.placeholder" maxlength="200" />
            <field sortorder="30" name="pageanchor" control="textinput"          required="false" label="cms:ckeditor.linkpicker.pageanchor.label" placeholder="cms:ckeditor.linkpicker.pageanchor.placeholder" help="cms:ckeditor.linkpicker.pageanchor.help" maxlength="30" />
        </fieldset>

        <fieldset id="url" sortorder="20">
            <field sortorder="10" name="protocol" control="select"    required="true"  label="cms:ckeditor.linkpicker.protocol.label" defaultValue="http://" values="http://,https://,ftp://,news://,tel://" addMissingValues="true" />
            <field sortorder="20" name="address"  control="textinput" required="true"  label="cms:ckeditor.linkpicker.address.label"  placeholder="cms:ckeditor.linkpicker.address.placeholder" />
            <field sortorder="30" name="title"    control="textinput" required="false" label="cms:ckeditor.linkpicker.title.label"    placeholder="cms:ckeditor.linkpicker.title.placeholder" maxlength="200" />
        </fieldset>

        <fieldset id="email" sortorder="30">
            <field sortorder="10" name="emailaddress"  control="textinput"   required="true"  maxlength="255" label="cms:ckeditor.linkpicker.emailaddress.label" placeholder="cms:ckeditor.linkpicker.emailaddress.placeholder" />
            <field sortorder="20" name="emailsubject"  control="textinput"   required="false" maxlength="100" label="cms:ckeditor.linkpicker.emailsubject.label"                      />
            <field sortorder="30" name="emailbody"     control="textarea"    required="false" maxlength="200" label="cms:ckeditor.linkpicker.emailbody.label"                         />
            <field sortorder="40" name="emailantispam" control="yesnoswitch" required="false"                 label="cms:ckeditor.linkpicker.emailantispam.label" defaultValue="true" />
            <field sortorder="50" name="title"         control="textinput"   required="false" maxlength="200" label="cms:ckeditor.linkpicker.title.label"        placeholder="cms:ckeditor.linkpicker.title.placeholder" />
        </fieldset>

        <fieldset id="asset" sortorder="35">
            <field sortorder="10" name="asset"  control="assetPicker" required="true" label="cms:ckeditor.linkpicker.asset.label" />
        </fieldset>

        <fieldset id="anchor" sortorder="40">
            <field sortorder="10" name="anchor" control="select"    required="true"  label="cms:ckeditor.linkpicker.anchor.label" placeholder="cms:ckeditor.linkpicker.anchor.placeholder" values="" />
            <field sortorder="20" name="title"  control="textinput" required="false" label="cms:ckeditor.linkpicker.title.label"  placeholder="cms:ckeditor.linkpicker.title.placeholder" maxlength="200" />
        </fieldset>

        <fieldset id="emailvariable" sortorder="50">
            <field sortorder="10" name="emailvariable" control="textinput" required="true" label="cms:ckeditor.linkpicker.emailvariable.label"  placeholder="cms:ckeditor.linkpicker.emailvariable.placeholder" maxlength="100" />
        </fieldset>
    </tab>

    <tab id="advanced" sortorder="20" title="cms:ckeditor.linkpicker.advanced.tab">
        <fieldset id="advanced" sortorder="10">
            <field sortorder="10" name="link_target"     control="select"      required="false" label="cms:ckeditor.linkpicker.link_target.label" values="_self,_blank,_parent,_top" labels="cms:ckeditor.linkpicker.link_target._self,cms:ckeditor.linkpicker.link_target._blank,cms:ckeditor.linkpicker.link_target._parent,cms:ckeditor.linkpicker.link_target._top" />
            <field sortorder="20" name="nofollow"        control="yesnoswitch" required="false" label="cms:ckeditor.linkpicker.nofollow.label" help="cms:ckeditor.linkpicker.nofollow.help" />
            <field sortorder="20" name="referrer_policy" control="enumSelect"  enum="linkReferrerPolicy" required="false" label="cms:ckeditor.linkpicker.referrer_policy.label" help="cms:ckeditor.linkpicker.referrer_policy.help" />
        </fieldset>
    </tab>
</form>