Good Morning;

I am using Sharepoint 2013 OP with SPD2013.

I have made a custom form using SPD2013. I want to hide the "Spell check" icon at the top of the form. How do I do that?

有帮助吗?

解决方案

I would guess that you have the problem with the Spelling... link which shows up when you have a text editor on the page. If that's the case, you can remove it by using the following javascript:

var d = document.querySelectorAll(".ms-toolbar");
for(var v in d) if (d[v].style) d[v].style.display = "none";

Please check if there is anything else on the page with the class ms-toolbar and make the appropriate changes to exclude it if there is.

其他提示

To hide the default Spell check option on SharePoint form, you can use either one of the below solution:

  1. Using Javascript: You can add the Script Editor web part on you form page and use below javascript code:

    <script type="text/javascript"> document.querySelector("li[id='Ribbon.ListForm.Edit.SpellCheck']").style.display = "none"; </script>

  2. Using CSS: You can add the Script Editor web part on you form page and use below CSS code:

    <style type="text/css"> #Ribbon\.ListForm\.Edit\.SpellCheck { display: none !important } </style>

许可以下: CC-BY-SA归因
scroll top