When calling the activator for online page editor add-on I get the following error: 07:37:08.135 ReferenceError: require is not defined dmxPageEditor.js:9
I am using Dreamweaver CC, OS X 10.9.1. Every time I edit or open the page I get the message Making this change would require changing code that is locked by a template or translator. The change will be discarded
That message appears on other pages I have done, but the page editor still works. On this one, it does not.
The issue you are having is that there are includes OUTSIDE of the editable region, that need to be located AFTER the require.js, but they are locked by the template, as they are not in the editable region. When DW tries to move the require.js before those locked includes, it sees that they are locked and does not move it. This is why you see the error saying "Making this change would require changing code that is locked by a template or translator. The change will be discarded"
Here is what you can do: Move the following includes inside the editable region named "head". Then when DW needs to place require.js it will be able to put it where it needs to be.
EXCEPT that those includes are needed for the MENU which is on the template. IF I do it the way you suggest, any page that I add based on the template, I would also have to manually have to add the includes listed above to each subsequent template.
However, it is just easier to add the single require.js to each head.
Another possibility would be to add the reference to require.js to the template... if so, it should be BEFORE the request for Jquery?