Jakweb.ch stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.4 KiB

<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js"></script>
<script src="<?php echo BASE_URL;?>js/urlslug.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
tinymce.init({
selector: 'textarea.w-editor',
content_css : "<?php echo BASE_URL_ORIG;?>css/stylesheet.css",
height: 500,
menubar: false,
paste_as_text: true,
entity_encoding : "raw",
plugins: [
'advlist autolink lists link image charmap print preview anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code responsivefilemanager codesample'
],
toolbar: 'insert | undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
external_filemanager_path:"<?php echo BASE_URL_ORIG;?>js/editor/filemanager/",
filemanager_title:"Filemanager" ,
external_plugins: { "filemanager" : "<?php echo BASE_URL_ORIG;?>js/editor/filemanager/plugin.min.js"},
relative_urls: false
});
// Get the slug
$("#title").keyup(function(){
// Checked, copy values
$("#url_slug").val(jakSlug($("#title").val()));
});
});
</script>