updates to include tinymce in the default data property editing form
This commit is contained in:
parent
15c78c74d4
commit
b2f1680402
4 changed files with 54 additions and 5 deletions
29
webapp/web/js/edit/initTinyMce.js
Normal file
29
webapp/web/js/edit/initTinyMce.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
var initTinyMCE = {
|
||||
// Initial page setup
|
||||
onLoad: function() {
|
||||
this.mergeFromTemplate();
|
||||
this.initObjects();
|
||||
this.initEditor();
|
||||
|
||||
},
|
||||
|
||||
// Add variables from menupage template
|
||||
mergeFromTemplate: function() {
|
||||
$.extend(this, customFormData);
|
||||
},
|
||||
initObjects: function() {
|
||||
this.wsywigFields = $(".useTinyMce");
|
||||
},
|
||||
// Create references to frequently used elements for convenience
|
||||
initEditor: function() {
|
||||
initTinyMCE.wsywigFields.tinymce(initTinyMCE.tinyMCEData);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
initTinyMCE.onLoad();
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue