I want to save my application from attack so I wanted to disable any type of execution in my CKEditor config, so I found a solution that is allowContent: false which prevents the <scripts> tags inside CKEditor but after putting <p><a href="javascript:(alert(document.domain))">XSS</a></p> in the CKEditor so it executes the js inside href.
config
config = {
...,
allowContent: false
}
now the below script doesn't work after putting the above config:
<script>alert(1)</script>
I also wanted to prevent below js inside href but currently, it executing
<p><a href="javascript:(alert(document.domain))">XSS</a></p>