无法添加类型为“脚本编辑器"的Web部件;到共享点在线上的我的页面 [英] Unable to add Web Part of type "Script Editor" to my pages inside sharepoint online
问题描述
当我在内部工作于sharepoint 2013时,我习惯于从设置"菜单中编辑页面. >> 编辑页面" >> 插入Web部件"; >> 媒体和内容" >> 脚本编辑器"
when i was working on sharepoint 2013 on-premise , i use to edit the page from "Setting" >> "Edit Page" >> "Insert Web Part" >> "Media and Content" >> "Script Editor" .
现在我经常使用此方法将脚本添加到某些页面以隐藏列,更改某些标签等.
Now i use to do this appraoch to add scripts to certain pages to hide columns , change some label etc..
例如.当我在内部共享点中添加新的讨论板时,我会添加一些脚本来隐藏最佳答复"选项. ,请隐藏问题"复选框,如下所示:-
for example. when i add a new discussion board inside my sharepoint on-premise , i add some scripts to hide the option "Best Reply" , hide the Question checkbox, as follow:-
<style>
.ms-core-menu-link[title='Best reply'])
{
display:none !important;
}
.ms-core-menu-item[text='Best reply']
{
display:none !important;
}
</style>
<script>
$( document ).ready(function() {
$('.ms-formtable nobr:contains("Question")').closest('tr').hide();
});
</script>
现在,我正在尝试在另一台共享2013联机点服务器中做同样的事情,但是当我编辑页面时,我找不到添加脚本编辑器Web部件的选项.这是我的Webpart的外观,其中缺少许多WebPart,包括 脚本编辑器:-
now i am trying to do the same inside another server which is a sharepoint online 2013, but when i edit the page , i can not find the option to add a script editor web part. here is how my webparts looks like, where lot of webparts are missing including the Script Editor:-
所以任何人都可以在这些问题上提出意见:-
so can anyone adivce on these points please:-
1.在sharepoint Online内部,是否可以在我的讨论列表中的创建,编辑,查看表单中添加脚本编辑器?
1. Inside sharepoint online is there a way to add a script editor to my create, edit, view forms inside my discussion lists?
2.如果无法在线在sharepoint中添加脚本编辑器,那么我如何在脚本中进行当前正在执行的修改?
2. if there is no way to add script editor inside sharepoint online, then how i can do the modifications i am currently doing inside the script ?
谢谢
推荐答案
您好,johnjohn,您需要在网站设置中激活自定义脚本功能.
Hi johnjohn- you need to activate custom script feature in the site settings.
这篇关于无法添加类型为“脚本编辑器"的Web部件;到共享点在线上的我的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!