CEF4Delphi icon indicating copy to clipboard operation
CEF4Delphi copied to clipboard

Spell checker not working

Open salvadordf opened this issue 5 years ago • 5 comments

The spell checker in the latest CEF4Delphi version doesn't work.

This issue has been reported to the CEF project : https://github.com/chromiumembedded/cef/issues/3055

Workaround : Keep using the version in last CEF4Delphi release. https://github.com/salvadordf/CEF4Delphi/releases/latest

salvadordf avatar Nov 28 '20 12:11 salvadordf

Another workaround : Adding this code line before the GlobalCEFApp.StartMainProcess call in the DPR file GlobalCEFApp.DisableFeatures := 'WinUseBrowserSpellChecker';

salvadordf avatar Nov 28 '20 15:11 salvadordf

Hi. I added the line GlobalCEFApp.DisableFeatures := 'WinUseBrowserSpellChecker'; in my code but the spell checker continues working (failing in this case). EN seems work, but PT-BR don't. Do we have another workaround to disable spell checker?

I using as html editor. image

willisnou avatar Jun 13 '23 20:06 willisnou

Try using the TChromium.SpellChecking and TChromium.SpellCheckerDicts properties like this.

salvadordf avatar Jun 14 '23 09:06 salvadordf

Works really fine, thanks. But in my tests it must be setted before TChromium created event (i.e OnFormCreate), if it be set on BrowserCreatedMsg, seems not works.

willisnou avatar Jun 14 '23 11:06 willisnou

Those properties modify the browser preferences. The preferences are updated automatically after the next navigation or you can also force an update when you call TChromium.UpdatePreferences manually.

salvadordf avatar Jun 14 '23 12:06 salvadordf