Using UpdatePreference with dictionary
Posted: Sat Jun 09, 2018 11:35 am
Is it possible somehow to set CEF setting, which accepts values of type 'dictionary'? I want to set multiple spelling dictionaries. In C# CEF this is handled as following, but I don't see dictionary version of UpdatePreference in Cef4Delphi:
Code: Select all
var rc = cwb.GetBrowser().GetHost().RequestContext;
string error;
var dicts = new List<string>();
dicts.Add( "en-US" );
dicts.Add( "de-DE" );
dicts.Add( "fr-FR" );
rc.SetPreference( "browser.enable_spellchecking", true, out error );
rc.SetPreference( "spellcheck.dictionaries", dicts, out error );