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

Enable TinyMCE on course edit page

parent 7ba8bb87
No related branches found
No related tags found
No related merge requests found
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/edit.css'); ?> <?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/edit.css'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/tinymce/jscripts/tiny_mce/tiny_mce.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/tinymce.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/edit.js'); ?> <?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/edit.js'); ?>
<form action="<?php echo $this->url(array('action' => 'edit.post')); ?>" enctype="multipart/form-data" method="post"> <form action="<?php echo $this->url(array('action' => 'edit.post')); ?>" enctype="multipart/form-data" method="post">
......
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "spellchecker",//, crosslistings, noneditable",
editor_selector : "mceEditor",
entity_encoding : "raw",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_buttons1 : "bold, italic, underline, sub, sup, spellchecker", //, crosslistings",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
noneditable_noneditable_class : "mceNonEditable",
valid_elements : ""
+ "-strong/-b,"
+ "-em/-i,"
+ "-sub,"
+ "-sup,"
+ "-span[style],"
+ "br"
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment