Open svx opened 9 years ago
http://docs.plone.org/develop/addons/javascript_standards.html needs to be updated since I don't see jquery-migrate plugin being loaded in Plone 5. This means that code snippets that use $.browser will break ever since jquery 1.9 and since plone 5 ships with 1.1.11 people will run into javascript errors.
Some interesting points for the javascript documentation can be found in plone/Products.CMFPlone#1163
Here is a small collection of topics that need to be covered in the javascript documentation:
A few of these things are covered in: [1] http://docs.plone.org/adapt-and-extend/theming/resourceregistry.html [2] http://training.plone.org/5/javascript/index.html
@frisi @thet maybe you want to join working on this issue.
There is some more content to integrate in this document: https://docs.google.com/document/d/1vg3K98oGk8wLkaT7uBZ-O6ufNw3NSupro4mK96hZrao
I just struggled to find information on how to add JavaScript to an edit form, until I found this thread https://community.plone.org/t/add-custom-javascript-to-the-edit-page/2537, to which I added my own details: https://community.plone.org/t/add-custom-javascript-to-the-edit-page/2537/3. I would like to add it to the https://docs.plone.org/develop/addons/javascript folder somehow.
Update documentation about how we do JavaScript in Plone 5