koco-tinymce
Version:
Knockout Components handlers and utilities for the TinyMCE editor
22 lines (18 loc) • 667 B
JavaScript
// Copyright (c) CBC/Radio-Canada. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import $ from 'jquery';
import urls from 'koco-url-utilities';
import mcePluginFactory from 'tinymce-plugin-factory';
import dialoger from 'koco-dialoger';
export default mcePluginFactory.createMcePlugin({
pluginName: 'shortcuts',
title: 'shortcuts.desc', //'Raccourcis clavier',
image: urls.url('/images/question.png'),
pluginInfo: {
longname: 'Shortcuts plugin',
author: 'Plate-forme',
version: '1.0'
}
}, function() {
dialoger.show('help-shortcuts');
});