Here's a working example. It uses the autoSpellChecker command. See
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/autoSpellChecker.html


I've tested it by adding what follows to my customize.xxe file:
---
  <command name="contextualMenu">
    <macro>
      <choice>
        <command name="autoSpellChecker" parameter="popupMenu" />

        <sequence>
          <test expression="$selectedChars != ''" />
          <command name="contextualMenu1" />
        </sequence>

        <command name="editMenu" />
      </choice>
    </macro>
  </command>

  <command name="contextualMenu1">
    <menu>
      <item label="To Upper Case"
            command="convertCase" parameter="upper" />
      <item label="To Lower Case"
            command="convertCase" parameter="lower" />
      <item label="Capitalize Words"
            command="convertCase" parameter="capital" />

      <editMenu />
    </menu>
  </command>

  <binding>
    <mousePressed button="3"/>
    <command name="contextualMenu" />
  </binding>
---

Thomas Dumm wrote:
>  
> Since I created contextual menus, the "original" menu with the
> spellcheck suggestions is not displayed any more when clicking on
> misspelled words.
> How do I have to adjust my contextual menu in order that the spellcheck
> suggestions show up if I click on a misspelled word?
>  
> Kindest regards and thank you for any suggestion!
> Thomas Dumm
>  
> 
> <command name="contextualMenu">
> <macro>
> <choice>
> <sequence>
> <test expression="$selectedChars != ''"/>
> <command name="contextualMenu1"/>
> </sequence>
> <sequence>
> <test expression="local-name($selectedElement) = 'colspec'"/>
> <command name="contextualMenu2"/>
> </sequence>
> <sequence>
> <test expression="local-name($selectedElement) = 'ImageEntity'"/>
> <command name="contextualMenu3"/>
> </sequence>
> <sequence>
> <test expression="($dot/ancestor::tgro...@tgroupstyle='Draw'])"/>
> <command name="selectNode" parameter="ancestorOrSelf[implicitElement]
> entry"/>
> <command name="contextualMenu4"/>
> </sequence>
> <sequence>
> <test expression="local-name($selectedElement)= 'TextEntity'"/>
> <command name="contextualMenu5"/>
> </sequence>
> <command name="contextualMenu0"/>
> </choice>
> </macro>
> </command>
> 


Reply via email to