Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

I don't understand the documentation about spell.removeWord

$
0
0

According to the documentation here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/w whimpl/js/html/wwhelp.htm?href=JavaScript_SectionPage.70.1.html&access ible=true

 

Words cannot be removed from user dictionaries that were created using either customDictionaryCreate or customDictionaryExport.

 

The above does not make sense to me, take the following example I made:

 

spell.available;

spell.customDictionaryCreate("mydictionary");

spell.addWord("someword", "mydictionary");

var word = spell.userWords("mydictionary");

console.println(word[0]);

spell.removeWord("someword", "mydictionary");

word = spell.userWords("mydictionary");

if(word !== null)

{

    console.println(word[0]);

}

else

{

console.println("null");

}

 

Run through the console, I get:

someword

null

 

Copy and paste snippet to try it yourself:

spell.available;spell.customDictionaryCreate("mydictionary");spell.add Word("someword", "mydictionary");var word = spell.userWords("mydictionary");console.println("\n" + word[0]);spell.removeWord("someword", "mydictionary");word = spell.userWords("mydictionary");if(word !== null){console.println(word[0]);}else{console.println("null");}

 

QUESTION:

Is the documentation wrong? Or is there something I am missing? AFAICT, you *can* remove words from user dictionaries created with customDictionaryCreate as shown in my example.


Viewing all articles
Browse latest Browse all 73766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>