Showing posts with label tinymce. Show all posts
Showing posts with label tinymce. Show all posts

How to get javasrcipt returnValue from webbrowser control (tinymce htmlcode fron webbrowser)

In my previous post about the htmlcontrol i have not explained how i communicate with the tinymce javascript to get the actual values from the textarea.

Here is it how it works...


string valueFromTinyMce;
IHTMLDocument2 htdoc2 = editor2.HTMLDocument2; IHTMLWindow2 parentWindow = htdoc2.parentWindow; if (parentWindow != null) { IHTMLElement el = htdoc2.createElement("input"); el.id = "myValue"; ((IHTMLDOMNode)htdoc2.body).appendChild((IHTMLDOMNode)el); parentWindow.execScript("document.all['myValue'].value = tinyMCE.getContent('mce_editor_0')", "javascript"); valueFromTinyMce = el.getAttribute("value", 0); }

GREAT Windows Forms Html Control

I finally found a working HTMLControl to show and Edit HTML Content for Windows Forms Applications.
It uses internally a webeditor Control, and works great.
I did not verify memory usage :-)

http://www.codeproject.com/cs/miscctrl/editor_in_windows_forms.asp

Maybe this link will work!
http://www.codeproject.com/KB/edit/editor_in_windows_forms.aspx


I have modified it to work with tinyMce.
Normally it is in NON Enabled Mode.
If it goes into Editmode (DesignModeEnabled=true) then it shows the tinymce

http://tinymce.moxiecode.com/

If someone is interested in my code let me know...


EDIT
i have made some screenshots.

And here i explain how you can communicate with the hosted webeditor, resp. tinymce



SOURCE CODE HERE
http://blog.gfader.com/2010/01/winforms-html-editor-control-source.html

Latest Posts

Popular Posts