Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Ivan Posti
Total activity
13
Last activity
October 25, 2023 10:03
Member since
February 14, 2023 15:18
Following
0 users
Followed by
0 users
Votes
0
Subscriptions
4
Activity overview
Articles (0)
Posts (0)
Comments (9)
Ivan Posti
commented,
October 19, 2023 10:31
I don't have enough experience with Scala, but I don't think it is possible to use the suspendable functions from Kotlin there.In that case, you use the following approach:public static String coll...
Community
IntelliJ IDEA Open API and Plugin Development
How to guarantee that implementation of CefStringVisitor in JCEF should be called before next statement of cefBrowser.getSource
1 vote
Ivan Posti
commented,
October 18, 2023 10:16
Official comment
The callback passed to the getSource won't be invoked immediately, but some time later. Generally, you can't be sure when (and on what thread) it will be called. Why don't you just continue your lo...
Community
IntelliJ IDEA Open API and Plugin Development
How to guarantee that implementation of CefStringVisitor in JCEF should be called before next statement of cefBrowser.getSource
0 votes
Ivan Posti
commented,
June 30, 2023 09:54
Official comment
Hi Katherineliu, you can use org.intellij.plugins.markdown.ui.preview.jcef.MarkdownJCEFHtmlPanel for that. Use it's getComponent() method to get the Markdown view component that can be added to you...
Community
IntelliJ IDEA Open API and Plugin Development
Implementing Markdown Plugin in Custom intelliJ Plugin
0 votes
Ivan Posti
commented,
April 28, 2023 09:25
Collin Barber Please see the JBCefJSQuery: You create the instance of JBCefJSQuery Bind the query listener on the IDE side Load your page and inject the query into the page using executeJavaScrip...
Community
IntelliJ IDEA Open API and Plugin Development
Markdown Preview Swing Component
2 votes
Ivan Posti
commented,
April 24, 2023 09:20
Brice, Yes, it should be slightly ligther on resources than the non-OSR. Moreover, it is the prefered rendering mode, because it has much better integration with Swing (using non-OSR JCEF component...
Community
IntelliJ IDEA Open API and Plugin Development
Markdown Preview Swing Component
1 vote
Ivan Posti
commented,
April 24, 2023 08:52
Collin Barber, The copy button is added internaly by the code processing code fences. Unfortunatelly, you won't be able to customize it's behaviour. If you are using this component in your custom v...
Community
IntelliJ IDEA Open API and Plugin Development
Markdown Preview Swing Component
2 votes
Ivan Posti
commented,
April 13, 2023 13:13
Hi Brice, It is OK to have multiple MarkdownJCEFHtmlPanel, however, I would not recommend to have a lot of them. You can think of a single panel instance as a tab in a browser. You would need to te...
Community
IntelliJ IDEA Open API and Plugin Development
Markdown Preview Swing Component
1 vote
Ivan Posti
commented,
April 05, 2023 10:09
Official comment
Hi Colin, MarkdownPreviewFileEditor is not intented to be used as a standalone editor (it won't work without main editor). You can use MarkdownJCEFHtmlPanel instead. You can use this code to create...
Community
IntelliJ IDEA Open API and Plugin Development
Markdown Preview Swing Component
0 votes
Ivan Posti
commented,
February 14, 2023 15:18
Unfortunatelly, layout change actions can't be properly used inside modal dialogs due to the lack of proper DataContext there. I would suggest to not use the modal dialog with editor if possible. Y...
Community
IntelliJ IDEA Open API and Plugin Development
How does the Markdown editor hide the toolbar?
0 votes