Public Method Author API

domSelector

Specifies the DOM selector to inject the authoring interface rendered by Author API.

Important An empty container element must be placed on the page with a unique ID where the authoring interface will be rendered.

Examples

<!-- On the page, add a <div> container with a unique ID where the authoring interface will be rendered -->
<div id="my-authoring-interface-container"></div>

<script>
    // When init() is called, the authoring interface will be injected
    // into the 'my-authoring-interface-container' container on the page
    window.LearnosityItems.init(
        initializationObject,
        callbacksObject,
        'my-authoring-interface-container'
    );
</script>
Was this article helpful?