c5 page editor broken
Permalink
The page editor on one of my sites isn't working anymore.
I added a new html block and added a small jquery script in the block. Now the edit function for every block on every page is not working. I was able to remove that html block, and I don't see any traces of it when I view the source - but something has been broken. I tried comparing to another site I run, but I don't see what is causing the difference.
So now, if I click the "edit button", the page loads fine. However, if I attempt any action on a current block or attempt to add a new block, it is not working.
Attached are two screen prints. The first is when appears when I try to add a new block. The second is what appears if I edit an existing block
I added a new html block and added a small jquery script in the block. Now the edit function for every block on every page is not working. I was able to remove that html block, and I don't see any traces of it when I view the source - but something has been broken. I tried comparing to another site I run, but I don't see what is causing the difference.
So now, if I click the "edit button", the page loads fine. However, if I attempt any action on a current block or attempt to add a new block, it is not working.
Attached are two screen prints. The first is when appears when I try to add a new block. The second is what appears if I edit an existing block
Did you clear the site cache in the dashboard?
Yes, It did not fix the problem
I figured it out. I had also added these javascript libraries to the header. Apparently, these break the editor. Anybody know why?
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>
I would like to use the jquery-ui file
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>
I would like to use the jquery-ui file
Changes to the API in jQuery 1.9 seem to break a lot of things, unfortunately. I'd try using an earlier version if you can.
Jquery is called by C5, you do not need to include it.
I proposed a change on github
https://github.com/concrete5/concrete5/pull/771...
This was closed because the whole topic of asset mapping is due to be revisited in c5.7. However, if you want to have a play with different jQuery versions (and other things), the changes are available in Github.
https://github.com/concrete5/concrete5/pull/771...
This was closed because the whole topic of asset mapping is due to be revisited in c5.7. However, if you want to have a play with different jQuery versions (and other things), the changes are available in Github.