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

2 Attachments

 
Steevb replied on at Permalink Reply
Steevb
Did you clear the site cache in the dashboard?
dkchapuis replied on at Permalink Reply
Yes, It did not fix the problem
dkchapuis replied on at Permalink Reply
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
melat0nin replied on at Permalink Reply
melat0nin
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.
Steevb replied on at Permalink Reply
Steevb
Jquery is called by C5, you do not need to include it.
JohntheFish replied on at Permalink Reply
JohntheFish
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.