mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-02-05 06:53:01 -05:00
26 lines
695 B
JavaScript
26 lines
695 B
JavaScript
|
|
import { component } from './common';
|
|
|
|
export const register = (editor) => {
|
|
const registerOption = editor.options.register;
|
|
|
|
registerOption(`${component}:mediacmsurl`, {
|
|
processor: 'string',
|
|
default: ''
|
|
});
|
|
|
|
registerOption(`${component}:launchUrl`, {
|
|
processor: 'string',
|
|
default: ''
|
|
});
|
|
|
|
registerOption(`${component}:lti`, {
|
|
processor: 'object',
|
|
default: {}
|
|
});
|
|
};
|
|
|
|
export const getMediaCMSUrl = (editor) => editor.options.get(`${component}:mediacmsurl`);
|
|
export const getLaunchUrl = (editor) => editor.options.get(`${component}:launchUrl`);
|
|
export const getLti = (editor) => editor.options.get(`${component}:lti`);
|