Skip to content
Snippets Groups Projects
Commit 11d43add authored by Tim Steiner's avatar Tim Steiner
Browse files

Add TinyMCE to course admin page

parent f080bb66
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,8 @@ class CourseAdminController extends Nmc_Controller_Action ...@@ -80,6 +80,8 @@ class CourseAdminController extends Nmc_Controller_Action
} }
$out->creditsSingleValues = implode(' ', $creditsSingleValues); $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('page', 'edit_course');
$out->assign('course', $course); $out->assign('course', $course);
$out->assign('parentGeneration', $course->getParentGeneration()); $out->assign('parentGeneration', $course->getParentGeneration());
......
...@@ -525,15 +525,15 @@ ...@@ -525,15 +525,15 @@
<h3>Prerequisite</h3> <h3>Prerequisite</h3>
<fieldset> <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> </fieldset>
<h3>Notes</h3> <h3>Notes</h3>
<fieldset> <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> </fieldset>
<h3>Description</h3> <h3>Description</h3>
<fieldset> <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> </fieldset>
</div> </div>
...@@ -556,11 +556,11 @@ ...@@ -556,11 +556,11 @@
</label> </label>
<label> <label>
Prereq<br /> 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>
<label> <label>
Notes<br /> 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> </label>
</fieldset> </fieldset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment