ldapsaisie/public_html/includes/js/LSformElement_wysiwyg_field.js

20 lines
584 B
JavaScript
Raw Normal View History

2018-06-15 17:20:37 +02:00
var LSformElement_wysiwyg_field = new Class({
initialize: function(name,textarea){
this.name = name;
this.textarea = textarea;
this.params = varLSdefault.getParams(this.name);
this.initialiseLSformElement_wysiwyg_field();
},
initialiseLSformElement_wysiwyg_field: function() {
var options = {};
if ($type(this.params.extra_options) == 'object') {
options = this.params.extra_options;
}
options.target = this.textarea;
options.language = varLSdefault.getCurrentLang();
tinymce.init(options);
},
2020-04-29 15:54:21 +02:00
2018-06-15 17:20:37 +02:00
});