In IBM WebSphere Portal v8.5 a new extension point was exposed within the Web Content Manager (WCM) Authoring portlet to support replacing all HTML fields with a custom editor.

The extension works in the same way as all other custom fields of WCM. The extension is documented with a sample here:

CodeMirror is described on their web site as “a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.”

This sample includes all the files necessary to integrate CodeMirror ( into WCM and to deploy it onto your portal server.