salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.21k stars 369 forks source link

Spell checker not working #324

Closed salvadordf closed 1 month ago

salvadordf commented 3 years ago

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 commented 3 years ago

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

willisnou commented 1 year ago

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

salvadordf commented 1 year ago

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

willisnou commented 1 year ago

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.

salvadordf commented 1 year ago

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 commented 1 month ago

Fixed upstream