Problem Content Editor

Permalink
Hi,

Since this morning i have my Content Block which didn't show the text editor but only the links on top (see attached file).
All the other blocks works normally.
I did empty the cache, still the same.

I still have in my header at the top this:
<?php Loader::element('header_required') ?>


And in my footer straight before the </body> </html> Tag this :
<?php  Loader::element('footer_required'); ?>


And in my default.php file this on the very top and very bottom :
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>    
<?php $this->inc('elements/footer.php'); ?>

Version of Concrete5 : 5.6.3.4

Any ideas ?

1 Attachment

chrismodlao
 
chrismodlao replied on at Permalink Reply
chrismodlao
So i found the file who was destroying this Content Block but i still have no idea why.
I have a JS file that call different CSS depending on the size of the browser like this :
(i use this framework to build website :http://github.com/ajlkn/skel)

(function($) {
   skel.init({
      reset: 'full',
      breakpoints: {
         global: {
            href: 'css/style.css',
            containers: 1400,
            grid: { gutters: ['2em', 0] }
         },
         xlarge: {
            media: '(max-width: 1680px)',
            href: 'css/style-xlarge.css',
            containers: 1200
         },
         large: {


It seems to brake down the Content block's Editor ??
What is strange is that it works this morning without doing anything.
chrismodlao replied on at Permalink Reply
chrismodlao
Solution for me would be to unload this script : skel.js

How can i achieve this ??
chrismodlao replied on at Permalink Reply
chrismodlao
Something else i've found is that if i load this script in the Header everything works fine :

<script type="text/javascript" src="/xxx-Setup_Folder-xxx/concrete/js/tiny_mce/tiny_mce.js"></script>
chrismodlao replied on at Permalink Reply
chrismodlao
So i did take the problem other way round.
I did unload SKEL.js script if not Logged In like this :

<?php    
    $u = new User();
if($u->isLoggedIn()) {
   //search box
} else {
   echo('<script src="/xxx-localfolder-xxx/themes/BuraphaAgroforestery/js/skel.min.js"></script>;
}
?>


And now everything works !! Hope it helps some