Created
September 19, 2016 18:36
-
-
Save abhardwaj4/8716352d2926e0b45fcf6e1f38d854eb to your computer and use it in GitHub Desktop.
Override CUI.rte.plugins.KeyPlugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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