The rich text editor in AEM 6 has a source code editor, which renders the html code if copy pasted in it. Am stuck with the JS part. how to make the script tag work in it?
If i add
<script>
$(document).ready(function(){ //alert("1"); });
</script>
then it converts it to:
<p>$(document).ready(function(){ //alert("1");</p>
when viewed in the page source.
and " $(document).ready(function(){ //alert("1"); });" is rendered on the page as it is.