Intellij Plugin Development | Display of Web Application in a Panel within Intellij
Answered
Hi,
We are developing company specific extensions/plugins for both VSCode and Intellij.
We would like to display certain web pages within the IDE to the user which are displayed as the result of an action - in VSCode we can use WebViews to achieve this, embedding the web application within an iframe and opening it within a panel.
Is there an equivalent capability for Intellij Plugin Development, or something that could be used to achieve the same?
Thanks.
Please sign in to leave a comment.
You can use JCEF (embedded Chrome) https://plugins.jetbrains.com/docs/intellij/jcef.html
Could you point me in the right direction for how I could embed the JCEF within the IDE itself? The documentation only provides an incomplete example using JPanel, but I'm quite new to the plugin SDK and a more complete example would really help.
Reading through the plugin SDK I'm trying to find how I can load the content to the screen where a typical editor tab would be presented (for example instead of a .java file as a tab in the IDE, we would display a panel containing the external web page).
Appreciate the guidance.
Markdown plugin in IJ Community does something similar using "preview" tab rendering via JCEF.
org.intellij.plugins.markdown.ui.preview.MarkdownPreviewFileEditor -> org.intellij.plugins.markdown.ui.preview.jcef.MarkdownJCEFHtmlPanel
hello David R Bingham how do you resolve this question. i want to do the same thing . can you teach me?
https://intellij-support.jetbrains.com/hc/en-us/community/posts/15757368630418-how-to-Open-the-web-page-in-the-file-editor-position-