Opening new issue on this, though particulars are very similar to the closed issue http://drupal.org/node/1174702

Have installed cpn, and the important parts (i.e., custom CSS & JS) work, but I have not been able to enable code highlighting.

Site is using Domain Access and CKEditor module for WYSIWYG editing. With an earlier version, I had what appears to be a compatibility issue between cpn and the ckeditor module, but that appears to have gone away with subsequent module updates. Also using the Vertical Tabs module to format the edit page.

I've downloaded CodeMirror 1.0 and unzipped to sites/all/libraries/codemirror, and then turned on CodeMirror syntax highlighting for all domains.

While logged-in as a user in the administrative role, I load the edit page for a node, then scroll down and expose the tab labeled 'CSS & Javascript'. The code is un-highlighted. If I then click on the link labeled 'Enable syntax highlighting', it triggers an anchor that drives me to the top of the page without enabling syntax highlighting.

Any suggestions?

Probably not going to spend a ton of time debugging this, since I'm already getting what I view as the primary functionality of this module, but it would be nice to have a little more facility for administering custom pages while away from a highlighting editor.

Comments

damienmckenna’s picture

This sounds like the JS is not loading correctly. When this happens you should first verify that there aren't any JS errors on the page causing the problem.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

I'm marking this as a duplicate of #1956590: Update to support CodeMirror v3.20 & newer as I'm soon going to add support for CodeMirror v3 and will provide docs & drush commands for automatically downloading it.