AEOS Calvarium v0.5
This commit is contained in:
parent
57b531cb62
commit
1fa8b9e152
177 changed files with 2936 additions and 3386 deletions
22
lib/wysiwyg.lib.php
Executable file → Normal file
22
lib/wysiwyg.lib.php
Executable file → Normal file
|
|
@ -1,6 +1,24 @@
|
|||
<?php
|
||||
// Script owEditor
|
||||
// Script owEditor/pell
|
||||
|
||||
if (isset($_['input']))
|
||||
{
|
||||
$currentContent=stripslashes($_['input']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$currentContent=@$page['page']['contenu']['#text'];
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
new owEditor({fullPanel : true, maxHeight : 230, maxWidth : 700}).panelInstance('input');
|
||||
var editor = window.pell.init({
|
||||
element: document.getElementById('editor'),
|
||||
defaultParagraphSeparator: 'p',
|
||||
|
||||
onChange: function (html) {
|
||||
document.getElementById('html-output').textContent = html
|
||||
},
|
||||
})
|
||||
document.getElementById("pell-id").innerHTML = `<?php echo $currentContent; ?>`;
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue