2016-06-18 10:07:35 +02:00
|
|
|
<?php
|
|
|
|
|
2016-07-23 16:57:52 +02:00
|
|
|
if (!isset($_GET['nocke'])) :
|
|
|
|
addHead('<script src="/plugins/ckeditor/ckeditor.js"></script>', 'ckeditor');
|
|
|
|
addHead('<script src="/plugins/ckeditor/adapters/jquery.js"></script>', 'ckeditor-adapter');
|
|
|
|
addHead('<script>$(document).ready(function() { $("#entry-textarea").after(\'<button type="button" onclick="window.location.href=this.dataset.url" data-url="'.get_current_link().'?nocke">CKE -</button>\'); $("#entry-textarea").ckeditor(); });</script>');
|
|
|
|
else :
|
|
|
|
addHead('<script>$(document).ready(function() { $("#entry-textarea").after(\'<button type="button" onclick="window.location.href=this.dataset.url" data-url="'.get_current_link().'">CKE +</button>\'); });</script>');
|
|
|
|
endif;
|