WYSIWYG HTML5-Editor - how to save changes

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

WYSIWYG HTML5-Editor - how to save changes

Postby OneLiner » Fri Feb 08, 2019 10:11 am

We would like to host a WYSIWYG HTML5-Editor in our application, using CEF.

Which function allows us to access a changed html-page in order to save it away, after a user finished working with the HTML5-Editor?

I hope, the answer is going to be easy.
OneLiner
Techie
 
Posts: 33
Joined: Mon Jan 28, 2019 5:58 am

Re: WYSIWYG HTML5-Editor - how to save changes

Postby ndesktop » Fri Feb 08, 2019 12:22 pm

I'd say CefBrowser::GetMainFrame and with this frame call CefFrame::GetSource (you will need a CefStringVisitor).
A sample is in tests/ceftests/request_handler_unittest.cc.

Then you can save the string into a file.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: WYSIWYG HTML5-Editor - how to save changes

Postby magreenblatt » Fri Feb 08, 2019 12:35 pm

You can likely get the contents of the editor control as a string (using JavaScript, for example). It could then be submitted to your native code as a POST request and handled via https://bitbucket.org/chromiumembedded/ ... t-handling
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 57 guests