mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-05-16 10:35:26 +02:00
21 lines
555 B
JavaScript
21 lines
555 B
JavaScript
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
var textarea = document.getElement('textarea[name=html]');
|
|
if (!textarea) return;
|
|
var options = {};
|
|
if (textarea.disabled) {
|
|
options.readonly = 1;
|
|
options.setup = function(editor) {
|
|
editor.on('skinLoaded', function(e) {
|
|
editor.notificationManager.open({
|
|
text: textarea.get('title'),
|
|
type: 'warning'
|
|
});
|
|
});
|
|
};
|
|
}
|
|
|
|
options.target = textarea;
|
|
options.language = varLSdefault.getCurrentLang();
|
|
tinymce.init(options);
|
|
});
|