Html Editor in C# Windows Application

Hello,
I am using WebBrowser Control in C# Windows Application,when I change the language from English to Japanese or Chinese,I am unable to type desired language text inside it.
At the same time when I typed text in our forum text editor I am able to type desired text.
My aim is to provide same functionality in my windows application html editor.

Hi Nikhil,
>> when I change the language from English to Japanese or Chinese,I am unable to type desired language text inside it.
What do you by “language from English to Japanese or Chinese” and “type desired language text inside it”? Was the language you changed the winfrom language or the system language? Where did you type the text and could you share us a screen shot about this?
>> My aim is to provide same functionality in my windows application html editor.
Do you mean you want to create an html editor in your form? If so, I think the link below might be useful to you:
# tinyMCE HTML Editor in .NET WindowsForms
http://www.codeproject.com/Articles/27586/tinyMCE-HTML-Editor-in-NET-WindowsForms
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • Is there a way to embed an html editor in a webdynpro application?

    Hi,
       I need to create a webdynpro app that has an html editor. I have javascript code(for an html editor) avalaible, but as far as I know there is no way to embed it. Any suggestions? Or is there an existing UI element that I missed?
    Regards,
    Harsh

    hi ,
    Using a Iframe UI u can give the source as the path to this html file(the javascript code). But everytime a event occurs the content i the IFrame UI gets refreshed.
    If u have to just display a content in Iframe UI its fine. If u r planning to navigate inside it ..it wont work out .
    You can fire a exit plug to the javscript code if its the last step in ur application or u can fork a process and create a external window with this url.
    Hope this helps
    Regards
    Bharathwaj

  • HOW TO CONVERT A XML FILE TO HTML FILE FORMAT IN WINDOWS APPLICATION

    Hi iam a fresher iam working on a project in that i should convert the data in xml file to html file. I dont have any idea regarding this can anyone help me how to convert the xml file to a html file format. I just written the code till how to read the xml
    file. Now i stucked how to write the code for converting to html format.
    Thanks and Regards,
    Dileep.

    Hi iam a fresher iam working on a project in that i should convert the data in xml file to html file. I dont have any idea regarding this can anyone help me how to convert the xml file to a html file format. I just written the code till how to read the xml
    file. Now i stucked how to write the code for converting to html format.
    Thanks and Regards,
    Dileep.
    Hello,
    For converting xml file to html, we could refer to the way shared in the following thread which uses an XSLT stylesheet to transform the XML into another format using the
    XslTransform class.
    http://www.codeproject.com/Articles/12047/How-to-Convert-XML-Files-to-HTML
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Implementing HTML Editor in Dynpro

    Hi,
      How to implement the HTML Editor in Dynpro ?
    Regards
    Prasath

    Check the following threads it clearly explained for ur question,it will be very usefull
    HTML Editor in WebDynpro
    Is there a way to embed an html editor in a webdynpro application?
    Re: Rich Text editor in Webdynpro
    it's possible
    u do this way
    Give the source of text edit as context variable of binary type
    In the DoInit() method write the code
    IWDAttributeInfo attr = wdContext.getNodeInfo().getAttribute("Data");
    type = attr.getModifiableSimpleType();
    ISimpleTypeModifiable type;
    defined as a global variable. and u Insert a Iframe and set the source as a context variable Source (String type). andInsert a button with text as Display and create an action as OnActionDisplay(). In that action write the code
    wdContext.currentContextElement.setSource(type.format(wdContext.currentContextElement().getData()));
    u see this thread also, this is helpful to u
    Re: WebDynPro and HTML...
    Check the following link for help
    HTML Editor in WebDynpro
    I would sujjest you to go for JSPDYN Pages where in you have been provided with HTML editor.
    Please check my Blog below for more information
    /people/anil.dichpally/blog/2007/04/25/jsp-dyn-pages-with-an-example
    Using a Iframe UI u can give the source as the path to this html file(the javascript code). But everytime a event occurs the content i the IFrame UI gets refreshed.
    If u have to just display a content in Iframe UI its fine. If u r planning to navigate inside it ..it wont work out .
    You can fire a exit plug to the javscript code if its the last step in ur application or u can fork a process and create a external window with this url.
    Please give me reward points...

  • How to embed image tag in HTML Editor Standard

    Hi all,
    I am using HTML editor standard in my application. I have placed a custom image to show on header region in custom folder. Now i want to give a image tag in HTML editor with a source to this file path. Now when i press save button, then the complete HTML with the image tag should be saved in the custom table.
    Can anyone help me in this regard?,
    With Regards,
    Sunil Bhatia

    Hi Ajantha,
    You can do the same as well in css..as  below..see sampl styles applied for Tab control...
    Tab.modifyTab
    selectedDownSkin: Embed(source="../images/tab_first.png"); 
    selectedOverSkin: Embed(source="../images/tab_first.png"); 
    selectedUpSkin: Embed(source="../images/tab_first.png"); 
    overSkin: Embed(source="../images/tab_first.png"); 
    upSkin: Embed(source="../images/tab_first.png");}
    I suggest you to use Button control instead of Image control .... so that you have more control as you need a click functionality ...
    So you can use the same to serve your purpose..
    <mx:Button id="btnSave" styleName="saveIcon" buttonMode="true" toolTip="Save comments"
                click="doSave();" />
    and your css is as shown below:
    .saveIcon{
     upSkin:Embed(source="/assets/icons/save_it_icon.png"); 
    upSkin:Embed(source="/assets/icons/save_it_icon.png");  
    overSkin:Embed(source="/assets/icons/save_it_icon.png"); 
    downSkin:Embed(source="/assets/icons/save_it_icon.png"); 
    disabledSkin:Embed(source="/assets/icons/save_it_icon.png");}
    You can use different images for different states of the Button..
    If this post answers your question or helps, please mark it as such.
    Thanks,
    Bhasker Chari

  • Html Editor in ADF Applications

    Hi people,
    We have used RichText editor for our application. But our customer isn't satisfied with the editor. They have been asking us to import Office into our web application :) So we are searching for a better editor. We have found some, but they want to run under a index.jspx page. But we want our editor to run under a task flow (under the tag <af:region> )
    Is there anyone who have used a better editor in their ADF application, can someone help us with our problem?
    Thanks.

    Yannick, you will always be my hero and saviour, but not this time :)
    I really need to take the documents from the web page, what we are aiming for is to cut the dependency of the users from Word applications, just enter some info from the page, store those info in UCM metadata, see the document right in the page, make some changes, and then submit the doc., then start a BPEL process, the approver can see the document in the Task Form, approve it, and the story goes on like that. If we are dependent on some Office application, the usabilility of our product would be poor.
    What I need is some complicated HTML editor in my application.

  • Controlling Menu Bars of Windows Applications like IE and Editor with LabVIEW 6

    Hi everybody !
    I'm trying to develop a vi (LabVIEW 6) which controls menu bars in
    Windows Applications (IE, Editor, etc.) like "File-Save As..." or
    "View-Source...". I'm pretty sure I've got to use the ActiveX
    possibilities in LabVIEW, but I haven't been succesful. Any comments
    will help.
    Thanks

    You can use Win32 API to simulate a key-press (e.g. ctrl-S for Save)
    for IE or any window applications, as long as the application has
    short cut for menu items, and active.
    You can use external code (VC, VB, dephi, etc..) to build DLL, CIN, or
    ActiveX, call them in LabVIEW.
    I made "Send Keys.vi" in G Toolbox.
    If the menu item doesn't has a shortcut, you can send a message (use
    spy tool to find out) to the application.
    George Zou
    http://gtoolbox.yeah.net

  • Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor

    Dear All,
    I am frequently getting following error message on aspx pages on my SharePoint 2007 environment
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer.
    If the problem persists, contact your Web server administrator.
    Upon refreshing and restarting the browser several times, this error message temporarily gone and everything becomes fine. But after some time same error message starts appearing again. Also I have noticed that this error message also appears
    while working with SharePoint Designer 2007.Any clues how to resolve this issue ? 
    Any help in this regard will be greatly appreciated.
    Muhammad Tariq khan

    Hi All,
    As I regenerated the problem (Unable to display this Web Part... ) from the faulty
    user. I experience following error message in the ULS logs...
    Error while executing web part: System.Data.SqlClient.SqlException: Invalid object name 't5_sco'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
    exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler,
    SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()     at System.Data.SqlClient.SqlDataReader.get_MetaData()    
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior,
    Boolean returnStream, Boolean async)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
    behavior)     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean& bSucceed)    
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback(String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback,
    ISPDataCallback pSchemaCallback)     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback(String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter
    pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pSchemaCallback)     at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()    
    at Microsoft.SharePoint.WebControls.SPDataSourceView.ConvertToIEnumerableWrappers(SPBaseCollection items, Int32 firstRow, Int32 rowCount, String[] fieldList)     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteSelect(DataSourceSelectArguments
    selectArguments)     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()    
    at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator(IDataSource datasource, Boolean originalData)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXPathNavigator(String
    viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform()
    What does this error message mean ?
    Muhammad Tariq khan

  • Textarea with HTML editor is not working

    Hi all,
    This is producing me a real headache.
    I created the simplest application in the world with one Textarea with HTML editor, and the editor control does not show the usual tool bar for fonts, color, alignment, etc. Just a ordinary textarea.
    Moreover, this was working before... I moved to another location in my work (me, not the server). Yes, I thought about the Internet Explorer, but Firefox has the same issue.
    So any idea I can try to make this work?
    I have another applications already in production with the same issue.
    Need help!!!!!!!!!
    Thanks in advance.
    Lukas.
    Application Express 2.1.0.00.39
    Oracle Database 10g Express Edition Release 10.2.0.1.0
    Internet Explorer 7.0.5730.11
    Firefox 1.5.0.11
    Windows XP Service Pack 2
    1 G Ram
    Pentium D CPU 2.80GHz

    Lukas,
    I would go and integrate FCKEDITOR (http://www.fckeditor.net/ ) into your application.
    Here are instructions on how to achieve this (sorry but only in German):
    http://www.oracle.com/global/de/community/tipps/einbinden_fckeditor/index.html
    It basically means:
    1) copying the files from fckeditor under the /images directory
    (you can use the instructions here: http://daust.blogspot.com/2006/03/where-are-images-of-application.html)
    2) creating two shortcuts INCLUDE_EDITOR_SCRIPTS and EDITOR
    3) placing the shortcut INCLUDE_EDITOR_SCRIPTS into the page html header and
    4) placing the shortcut EDITOR into the post element text of your plain textarea element
    That's it.
    BTW, FCKEDITOR has been included in Apex 3.0 as a standard item type.
    Regards,
    ~Dietmar.

  • HTML Editor

    Well, Howard Kistler has certainly already signed with an editor to sell its HTML Editor Applet. So instead of being parasites and begging for code, why not spit in our hands and code it by ourselves ?
    I've made some tries yesterday for a HTML editor application. So far, there is an appli where one can edit text, and set it bold or italic with a menu. One can also dump the HTML code to stdout.
    Here is the code, it's very simple, and after that I'll have some questions for you.
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class Bla extends JFrame {
        JEditorPane jep;
        Hashtable actions;
        private Action getActionByName(String name) {
            return (Action)(actions.get(name));
        public Bla() {
            jep = new JEditorPane();
            jep.setContentType ("text/html");
            // shouldn't insert HTML test not done with a JEditorPane
            // jep.setText ("This is a <b>test</b> !!");
            // store and display available actions for this Editor Kit
            actions = new Hashtable();
            Action[] actionsArray = jep.getEditorKit().getActions();
            for (int i = 0; i < actionsArray.length; i++) {
                Action a = actionsArray;
    actions.put(a.getValue(Action.NAME), a);
    System.out.println (a.getValue(Action.NAME) + " = " + a);
    System.out.println ("TEST : " + HTMLEditorKit.BOLD_ACTION); // --> "html-bold-action" !!
    // builds menu bar
    JMenuBar jmb = new JMenuBar();
    setJMenuBar (jmb);
    JMenu jm = new JMenu("commands");
    jmb.add (jm);
    jm.add (getActionByName ("font-bold"));
    jm.add (getActionByName ("font-italic"));
    JMenuItem out = new JMenuItem("output text");
    jm.add (out);
    out.addActionListener (new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println ("CONTENT : " + jep.getText ());
    // insert editor to a scroller and add all that to our frame
    JScrollPane scroller = new JScrollPane();
         JViewport port = scroller.getViewport();
         port.add(jep);
    getContentPane().add (scroller, BorderLayout.CENTER);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    pack();
    setSize (400, 400);
    show ();
    public static void main (String args[]) {
    new Bla();
    Questions :
    1) When we display HTMLEditorKit.BOLD_ACTION, the result is "html-action-bold" but this action does not exist in the action list that we got from the EditorPane ! Is it a bug or just something I didn't understand ?
    2) Is it a comprehensive list of all available actions on an EditorPane ?
    3) If you try to set the HTML text by yourself, the Editor won't like it unless it is perfectly structured (usage of <p>, by example). Strange behaviour and bugs will occur if you try it.
    4) When the HTML content is sent back, it is enclosed in <html><head></head><body>...</body></html>. What part of the architecure generates this code and how to get rid of it (not by String manipulations, of course).
    Thanks for your help. And see you soon for the next version !
    Matthieu

    I use TextWrangler and I think it rocks - it is completely free, very fast and just nice to use in general. The URL to download is:
    http://www.barebones.com/products/textwrangler/download.shtml
    Martin Bradford-Gago
    Apple Newbie Blog: http://aurora7795.blogspot.com
    MacBook, Intel Mac Mini, iMac G3   Mac OS X (10.4.8)   Using Parallels Desktop to connect to Windows XP

  • HTML Editor component and images

    Hi All!
    I know that the HTML editor component does not support images currectly.
    BUT: I though if I directly insert image link tags (<--img src="..."/-->) into the content of the editor, maybe it could work.
    So I tried.
    I realized the followings:
    - The image displays perfectly within the editor if the image link is outside of the database (remote link).
    - But, the image does not displays at all, if it is a server side LOB.
    (I use the server side image displaying procedure discussed in a few topic in this forum, and it works on a lot of pages in my application, and also on this page where the html editor is, BUT not IN the html editor).
    I'm using Firebug for Firefox, so I was able to track down what is happening in the background (while accessing images). I got this:
    The working image access (which is outside the html editor component) sends this request to the server:
    Request Headers
    Host     127.0.0.1:8080
    User-Agent     Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
    Accept     image/png,*/*;q=0.5
    Accept-Language     en,hu;q=0.8,hu-hu;q=0.5,en-us;q=0.3
    Accept-Encoding     gzip,deflate
    Accept-Charset     ISO-8859-2,utf-8;q=0.7,*;q=0.7
    Keep-Alive     300
    Connection     keep-alive
    Referer     http://127.0.0.1:8080/apex/f?p=102:21:3834663108933486:POPUP:NO:::
    Cookie     r3=%23ALL; r2=%23ALL; r1=%23ALL; ISCOOKIE=true; ORACLE_PLATFORM_REMEMBER_UN=KVIZ:sys; WWV_FLOW_USER2=BCD31FD14D4CFDF8
    Cache-Control     max-age=0
    The response for this is the correctly displaying image (of course).
    The non-working image access (which is within the html editor) send this:
    Request Headers
    Host     127.0.0.1:8080
    User-Agent     Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
    Accept     image/png,*/*;q=0.5
    Accept-Language     en,hu;q=0.8,hu-hu;q=0.5,en-us;q=0.3
    Accept-Encoding     gzip,deflate
    Accept-Charset     ISO-8859-2,utf-8;q=0.7,*;q=0.7
    Keep-Alive     300
    Connection     keep-alive
    Referer     http://127.0.0.1:8080/i/fck/editor/fckeditor.html?InstanceName=P21_NEW_MESSAGE&Toolbar=Default
    The response for this is:
    "The requested URL /i/fck/editor/KVIZ.image_display was not found on this server"
    I think the problem is the boldface referer.
    Can you (Gurus :) ) add any comment on this?
    Maybe a trick to avoid my problem?
    Sorry for being so long.
    Thank in advance,
    Zsoca

    SimplyHTML at http://www.lightdev.com/template.php4?id=3

  • Photoshop Elements 12 photo editor crashes directly when application launched. Get no error/message.

    Photoshop Elements 12 photo editor crashes directly when application launched.
    Get no error/message.
    My System: Windows 8.1
    All drivers are up-to-date.
    Please can someone help me?

    Hi rens,
    Was it working fine before?
    Have you tried updating PSE12 to the latest update and checked?
    Standard troubleshooting steps :
    > Disable all Non-Microsoft Startup Services. (Ref : http://helpx.adobe.com/x-productkb/global/disable-startup-items-services-windows.html )
    > Disable all the Antivirus softwares like CA, Norton,Mc Afee etc. temporarily from the computer.
    Try launching now and check.
    Regards,
    Rave

  • How can i close a windows application that works under vmware in am applescript

    Hi there,
    On my roof I have a set of solar panels. The daily score of these panels are only visible by using a Windows application.
    So I use vmware on my Imac to start Windows 7 on Bootcamp, this all by using a applescript in the automator app.
    In the script vmware is starting up and then i made a task in Windows that starts up the specific application after the Windows startup. After a delay of 180 seconds the script fills in a password an gives a return. That works well.
    Unfortunately it runs perfect the first tim a and then the second time, the specific application does not start. Only Windows starts up, the rest of the script does not work the right way, exempt closing the vmware, that goes as expected. So I think that the closing command that I give in the script:
    tell application "VMware Fusion"
    quit
    end tell
    causes a problem. The closing of the application within Windows is perhaps not done on a proper way.
    Therefore I am looking for a way to close that application first and then closing Windows 7 and then VMware.
    Thanks in advance for your help.

    As a completely different approach, I'd have a look at the raw network traffic with tcpdump or equivalent, and see if I could figure out how to access this data — if you're lucky, it's a fairly standard interface of some sort; HTML queries, possibly. 
    Start with a port scan of the controller for the panels (using Network Utility.app in OS X, or another tool), and see what IP ports are open and active.
    Is there a vendor and model associated with the controller for the panels?  That might turn up some software other than this Windows application/

  • How can i install windows application (like hislider) on my macbook?

    Recently i'm  trying to create html slider plugin for my website. so i intall hislider software in my computer to create stunning image slider. This software is running ok, but i also like to install it on my MacBook.
    Can anyone shed any more light?

    There are presently several alternatives for running Windows on Intel Macs.
    1. Install Boot Camp 4 if you’re running 10.7 Lion http://www.apple.com/support/bootcamp/
    or Boot Camp 3 if you’re running 10.6 snow Leopard http://support.apple.com/kb/HT3777. Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    2. Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    3. VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    4. CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    5. VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
      6. Last is Q.  Q is a freeware emulator that is compatible with Intel Macs.  It is much slower than the virtualization software, Parallels and VM Fusion.

  • Run script in HTML editor in WebView WP8.1

    I am developing an app in which I need to give HTML editing facility to the user. So I tried different HTML editors but finally TinyMCE was able to show controls for editing. But I am not able to set the contents of Editor. It gives Exception Exception
    from HRESULT: 0x80020101. And I tried all different solutions but could not figure it out. Here is link to my project
        string tinyMice = "<script type='text/javascript'> function myfun() {tinymce.execCommand('mceInsertContent', false, getQueryStrings());}myfun()</script>";
                        await System.Threading.Tasks.Task.Delay(TimeSpan.FromSeconds(1));
                        await webview_demo.InvokeScriptAsync("eval", new string[] { tinyMice });
    Can somebody help?

    hey,
    I am not sure what you exactly want to do but I took a look at the project you uploaded.
    First of all, you better use the NavigationCompleted or
    FrameNavigationCompleted event for executing onload functions.
    I have no idea about the tinymce js plugin but here is what I did to create a similar scenario.
    1) First, create a js function in the removeformat.html to return a string (replacing your getQueryStrings functions)
    function returnMessageValue() {
    return "Hello JS World";
    2) then create a script notify event handler and wire it up to the page so we can get alerts from the html page loaded.
    In NavigationCompleted event:
    string result = await this.webview_demo.InvokeScriptAsync("eval", new string[] { "window.alert = function (AlertMessage) {window.external.notify(AlertMessage)}" });
    this will notify the webview about window.alert's. So we subscribe to the Script notify event:
    webview_demo.ScriptNotify += (sender, args) =>
    MessageDialog m = new MessageDialog(args.Value);
    m.ShowAsync();
    and finally the code execution for our function:
    await webview_demo.InvokeScriptAsync("eval", new[] { "window.alert(returnMessageValue())" });
    // await webview_demo.InvokeScriptAsync("eval",
    // new[] { "tinymce.execCommand(\"mceInsertContent\", false, getQueryStrings())" });
    result:
    hope it helps
    Can Bilgin
    Blog
    Samples CompuSight

Maybe you are looking for