# gutenberg/19.3.0/lib/experimental/assets/tinymce-proxy.js

Gutenberg, version 19.3.0. 15 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/19.3.0/code/lib/experimental/assets/tinymce-proxy.js
- Raw: https://pluginprobe.com/plugins/gutenberg/19.3.0/raw/lib/experimental/assets/tinymce-proxy.js
- Modified: 2023-07-12T17:34:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/19.3.0/code/lib/experimental/assets/tinymce-proxy.js#L10-L20`.

```javascript
async function reloadWithTinymce() {
	const currentUrl = new URL( window.location.href );
	currentUrl.searchParams.set( 'requiresTinymce', '1' );
	window.location.href = currentUrl;
}

window.tinymce = new Proxy(
	{},
	{
		get: reloadWithTinymce,
		set: reloadWithTinymce,
		apply: reloadWithTinymce,
	}
);

```
