Skip to content

Instantly share code, notes, and snippets.

@abhardwaj4
Created September 19, 2016 18:36
Show Gist options
  • Save abhardwaj4/8716352d2926e0b45fcf6e1f38d854eb to your computer and use it in GitHub Desktop.
Save abhardwaj4/8716352d2926e0b45fcf6e1f38d854eb to your computer and use it in GitHub Desktop.
Override CUI.rte.plugins.KeyPlugin
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="rte.coralui2"/>
function overrideRTEKeyPlugin () {
// Include the code for KeyPlugin.js and override the necessary functions
}
(function () {
'use strict';
var INTERVAL = setInterval(function () {
if (CUI && CUI.rte && CUI.rte.plugins && CUI.rte.plugins.KeyPlugin) {
clearInterval(INTERVAL);
overrideRTEKeyPlugin();
}
}, 250);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment