1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop, Mobile: Plugins: Name webview root attribute so that it can be styled

This commit is contained in:
Laurent Cozic
2024-09-26 11:40:13 +01:00
parent 3ea403d004
commit 75b8caf816

View File

@@ -51,6 +51,7 @@ const webviewApi = {
docReady(() => {
const rootElement = document.createElement('div');
rootElement.setAttribute('id', 'joplin-plugin-content-root');
document.getElementsByTagName('body')[0].appendChild(rootElement);
const contentElement = document.createElement('div');