Disable Javascript on WebEdit Link in experience editor

345 views Asked by At

We are on sitecore 8.1 update 3.

Is it possible to disable "javascript" on WebEdit:EditLink popup on Experience editor.

Experience Editor - showing insert link

We already have custom General Link which already removes "javascript" from content editor. How can we do this on Experience editor.

1

There are 1 answers

2
josedbaez On BEST ANSWER

The window you see there comes from this XML file: /sitecore/shell/Applications/Dialogs/GeneralLink/GeneralLink.xml

The javascript block you want to remove looks like this.

<Border ID="JavaScript">
  <a href="#" class="mode" onclick="javascript:return scForm.invoke('OnModeChange','javascript')" onfocus="this.blur()">
    <ThemedImage Class="mode-icon" Src="Software/32x32/text_code_javascript.png" />
    <div class="mode-text">
      <Literal Text="JavaScript"/>
    </div>
 </a>
</Border>