Returns the editor for which this provides metadata.
Gets a new array containing a copy of all of the defined keys. The order of the keys in the array is not guaranteed.
Adds a listener for the specified type of event.
A string naming the event type.
The event listener to call when the event occurs.
Removes all keys and their values.
Returns the value of the specified key, or the default value if the key is not present.
The name of the desired metadata property.
An optional default returned if the key is not present.
The value of the key, if present; otherwise the default value, or undefined
if no default was specified.
Sets the value of the specified key. Setting a key to undefined
or null
has the same effect as removing the key.
The name of the desired metadata property.
The value to associate with the key.
Removes the specified key from the metadata, if it is present.
The name of the desired metadata property.
Removes a previously added listener for the specified type of event. This method does nothing if the listener was never added.
A string naming the event type.
The event listener to stop notifying when the event occurs.
This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.
Allows reading and writing the metadata associated a math document. Document metadata consists of a map with strings for both keys and values. If you wish to add your own custom keys to a document, include at least one dash
-
in the key name to avoid conflicts with any new keys added by future versions of the API.Example: Observe while adding, changing, and removing a custom key
Editor.metadata