Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Webwiew API to the plugin system #3484

Merged
merged 1 commit into from
Dec 6, 2018
Merged

Add Webwiew API to the plugin system #3484

merged 1 commit into from
Dec 6, 2018

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Nov 13, 2018

This API allows plugins to create fully customizable views as an iframe within Theia. This frame can render almost any HTML content, and it communicates with extensions using message passing.

Simple example:

// Create and show webview panel
const panel = theia.window.createWebviewPanel('testId', 'Test',  theia.ViewColumn.One);
panel.webview.html ='<html><head></head><body><h1>Test</h1></body></html>';

@olexii4 olexii4 force-pushed the web-view branch 2 times, most recently from 34226fc to 2016ba4 Compare December 1, 2018 17:57
@olexii4 olexii4 changed the title [WIP] Add Webwiew API to the plugin system Add Webwiew API to the plugin system Dec 1, 2018
@benoitf
Copy link
Contributor

benoitf commented Dec 3, 2018

cc @akosyakov some dev-packages are being modified by this PR

Signed-off-by: Yevhen Vydolob <[email protected]>

add theme styles into webview

Signed-off-by: Oleksii Orel <[email protected]>

add keyboard events into webview

Signed-off-by: Oleksii Orel <[email protected]>

implement setOptions for webview

Signed-off-by: Oleksii Orel <[email protected]>

implement setIconPath for webview

Signed-off-by: Oleksii Orel <[email protected]>

add an implementation for acquireTheiaApi

Signed-off-by: Oleksii Orel <[email protected]>
@olexii4 olexii4 merged commit 3d4501a into master Dec 6, 2018
@olexii4 olexii4 deleted the web-view branch December 6, 2018 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants