diff --git a/application/controllers/CourseadminController.php b/application/controllers/CourseadminController.php index f717764f4869dccde3ab658ecb6d25098f92dd93..9e48ccbd9a6db3162c51219faca0bce6a7ee13fe 100644 --- a/application/controllers/CourseadminController.php +++ b/application/controllers/CourseadminController.php @@ -80,6 +80,8 @@ class CourseAdminController extends Nmc_Controller_Action } $out->creditsSingleValues = implode(' ', $creditsSingleValues); + $out->addJsFile('/tinymce/jscripts/tiny_mce/tiny_mce.js'); + $out->addJsFile('/javascript/mce.js'); $out->assign('page', 'edit_course'); $out->assign('course', $course); $out->assign('parentGeneration', $course->getParentGeneration()); diff --git a/application/views/edit_course.xhtml b/application/views/edit_course.xhtml index 11cffbfd36f2aa076bc5c413e04fc45e50e6bf77..b223586a7d8ad802afc859c74faed9b505e20af7 100644 --- a/application/views/edit_course.xhtml +++ b/application/views/edit_course.xhtml @@ -525,15 +525,15 @@ <h3>Prerequisite</h3> <fieldset> - <textarea id="prerequisite" name="prerequisite"><?php echo htmlentities($this->course->prerequisite, ENT_COMPAT, 'UTF-8'); ?></textarea> + <textarea id="prerequisite" name="prerequisite" class="mceEditor"><?php echo htmlentities($this->course->prerequisite, ENT_COMPAT, 'UTF-8'); ?></textarea> </fieldset> <h3>Notes</h3> <fieldset> - <textarea id="notes" name="notes"><?php echo htmlentities($this->course->notes, ENT_COMPAT, 'UTF-8'); ?></textarea> + <textarea id="notes" name="notes" class="mceEditor"><?php echo htmlentities($this->course->notes, ENT_COMPAT, 'UTF-8'); ?></textarea> </fieldset> <h3>Description</h3> <fieldset> - <textarea id="description" name="description"><?php echo htmlentities($this->course->description, ENT_COMPAT, 'UTF-8'); ?></textarea> + <textarea id="description" name="description" class="mceEditor"><?php echo htmlentities($this->course->description, ENT_COMPAT, 'UTF-8'); ?></textarea> </fieldset> </div> @@ -556,11 +556,11 @@ </label> <label> Prereq<br /> - <textarea name="gradTieIn[prerequisites]"><?php echo $this->course->gradTieIn->prerequisites; ?></textarea><br /> + <textarea name="gradTieIn[prerequisites]" class="mceEditor"><?php echo $this->course->gradTieIn->prerequisites; ?></textarea><br /> </label> <label> Notes<br /> - <textarea name="gradTieIn[notes]"><?php echo $this->course->gradTieIn->notes; ?></textarea> + <textarea name="gradTieIn[notes]" class="mceEditor"><?php echo $this->course->gradTieIn->notes; ?></textarea> </label> </fieldset>