Commit ac20da3f by Tom Giannattasio

removed plugins, adjusted visualEditor reference

parent c7dbdc12
...@@ -11,11 +11,10 @@ function initHTMLEditor($editor, $prev) { ...@@ -11,11 +11,10 @@ function initHTMLEditor($editor, $prev) {
// there's a race condition here. wait a bit, then init tiny // there's a race condition here. wait a bit, then init tiny
setTimeout(function() { setTimeout(function() {
$editor.find('.edit-box.tinymce').tinymce({ $visualEditor = $editor.find('.edit-box.tinymce').tinymce({
script_url : '/static/js/tiny_mce/tiny_mce.js', script_url : '/static/js/tiny_mce/tiny_mce.js',
theme : "advanced", theme : "advanced",
skin: 'studio', skin: 'studio',
plugins : "autolink,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
// we may want to add "styleselect" when we collect all styles used throught the lms // we may want to add "styleselect" when we collect all styles used throught the lms
theme_advanced_buttons1 : "formatselect,bold,italic,underline,bullist,numlist,outdent,indent,blockquote,studio.asset,link,unlink", theme_advanced_buttons1 : "formatselect,bold,italic,underline,bullist,numlist,outdent,indent,blockquote,studio.asset,link,unlink",
...@@ -50,13 +49,13 @@ function initHTMLEditor($editor, $prev) { ...@@ -50,13 +49,13 @@ function initHTMLEditor($editor, $prev) {
} }
function convertVisualToHTML() { function convertVisualToHTML() {
htmlEditor.setValue($('.edit-box', visualEditor).html()); htmlEditor.setValue($visualEditor.html());
} }
function convertHTMLToVisual() { function convertHTMLToVisual() {
$('.edit-box', visualEditor).html(htmlEditor.getValue()); $visualEditor.html(htmlEditor.getValue());
} }
function updatePreview() { function updatePreview() {
$htmlPreview.html($('.edit-box', visualEditor).html()); $htmlPreview.html($visualEditor.html());
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment