updates to include tinymce in the default data property editing form

This commit is contained in:
hjkhjk54 2011-11-02 18:00:04 +00:00
parent 15c78c74d4
commit b2f1680402
4 changed files with 54 additions and 5 deletions

View 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();
});