How to hide spell check button in a custom form - Sharepoint 2013
-
30-01-2021 - |
문제
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:
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>
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>