Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/alphatab/src/platform/javascript/BrowserUiFacade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ export class BrowserUiFacade implements IUiFacade<unknown> {
this._contents = '';
const element: HtmlElementContainer = api.container as HtmlElementContainer;
if (settings.core.tex) {
this._contents = element.element.innerHTML;
element.element.innerHTML = '';
this._contents = element.element.innerText;
element.element.innerText = '';
}
this._createStyleElements(settings);
this._file = settings.core.file;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@ export class HtmlElementContainer implements IContainer {
}

public clear(): void {
this.element.innerHTML = '';
this.element.innerText = '';
}
}
4 changes: 2 additions & 2 deletions packages/playground/alphatex-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ async function load<T>(url: URL, type: XMLHttpRequest['responseType']): Promise<
async function setupEditor(api: alphaTab.AlphaTabApi, element: HTMLElement) {
Split(['#editor-wrap', '#alphatab-wrap']);

const initialCode = sessionStorage.getItem('alphatex-editor.code') ?? trimCode(element.innerHTML);
element.innerHTML = '';
const initialCode = sessionStorage.getItem('alphatex-editor.code') ?? trimCode(element.innerText);
element.innerText = '';

await setupMonaco();

Expand Down
Loading