MCPcopy Index your code
hub / github.com/tinymce/tinymce / addScript

Function addScript

modules/tinymce/src/core/test/ts/browser/ResourceTest.ts:24–26  ·  view source on GitHub ↗
(id: string, data: string)

Source from the content-addressed store, hash-verified

22 const testScript = (id: string, data: string) => `data:text/javascript,tinymce.Resource.add('${id}', '${data}')`;
23
24 const addScript = (id: string, data: string) => {
25 tinymce.Resource.add(id, data);
26 };
27
28 const loadScript = (id: string, url: string): Promise<any> =>
29 tinymce.Resource.load(id, url);

Callers 1

ResourceTest.tsFile · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…