Forum > General >

Get text from monaco

Posts: 1209

Threads: 68

Joined: May, 2022

Reputation: 17

Posted

Please allah I need the answer

  • 0

Did I mention I use arch btw?

ecstacy_lxnny

fka as delta

contentCreator

Posts: 764

Threads: 69

Joined: May, 2021

Reputation: 95

Replied

All you need to do is write this code

 


//Omg omg pls take text from Monaco please..

And that's it enjoy

  • 0

fka as delta

Posts: 35

Threads: 6

Joined: Apr, 2022

Reputation: 0

Replied

just use a PareX webview api

 

 

 

public async Task<string> GetText()
        {
            if (isDOMLoaded)
            {
                await this.ExecuteScriptAsync("window.chrome.webview.postMessage(editor.getValue())");
                await Task.Delay(200);

                return LatestRecievedText;
            }
            return string.Empty;
        }
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )