Displaying custom HTML

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Displaying custom HTML

Postby Bauglir » Wed Sep 01, 2010 1:23 pm

Hi,
is there a way to pass HTML as text to CEF control (e.g. load text from local file and pass that text to browser)?

Brona
Bauglir
Newbie
 
Posts: 8
Joined: Wed Sep 01, 2010 1:14 pm

Re: Displaying custom HTML

Postby magreenblatt » Wed Sep 01, 2010 2:20 pm

Are you seeking something like "view source", or do you want to load and render the text as HTML? To load and render the text as HTML see CefFrame::LoadString and similar. The main frame can be retrieved by calling CefBrowser::GetMainFrame.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 24 guests