added codemirror editor
This commit is contained in:
parent
a6636bb85f
commit
a27cfee2b2
2 changed files with 21 additions and 1 deletions
|
@ -27,7 +27,7 @@ class AdminController extends Katharsis_Controller_Abstract
|
|||
public function logoutAction()
|
||||
{
|
||||
$_SESSION['logged'] = 0;
|
||||
$this->_location('gate');
|
||||
$this->_location('index', 'index');
|
||||
}
|
||||
|
||||
// Private
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
<script src="<?php echo $this->base ?>/codemirror/lib/codemirror.js"></script>
|
||||
<link rel="stylesheet" href="<?php echo $this->base ?>/codemirror/lib/codemirror.css">
|
||||
<script src="<?php echo $this->base ?>/codemirror/mode/htmlmixed/htmlmixed.js"></script>
|
||||
<script src="<?php echo $this->base ?>/codemirror/mode/javascript/javascript.js"></script>
|
||||
<script src="<?php echo $this->base ?>/codemirror/mode/css/css.js"></script>
|
||||
<script src="<?php echo $this->base ?>/codemirror/mode/xml/xml.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload = function(){
|
||||
var myCodeMirror = CodeMirror.fromTextArea(
|
||||
document.getElementById('content'),
|
||||
{
|
||||
mode: "htmlmixed"
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div id="admin">
|
||||
<h3>Page bearbeiten</h3>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue