SharePoint。如何更改功能区中的默认值
我正在使用 SharePoint 2010。当我将图像插入到内容中时,我看到图像周围添加了空格。空格的默认值是 5px。
我想要 0px 代替。原因是编辑者忘记手动将其设置为0px,并且基本上不想进行额外的步骤。
我发现在 SharePoint 核心中有 14\template\features\publishinglayouts\provisionedui.xml 文件,其中设置了空间的默认值。我根本不喜欢在文件中进行更改的想法,因为:
a.嗯,它是核心文件,将来可能会被更改 例如服务包
b 的服务包。我需要考虑如何部署 将文件更改为农场(我可以创建一个功能来替换 文件在所有服务器上,但这听起来像是一个肮脏的黑客)。
您有更好的(或任何)想法如何实现我的目标吗?
I am using SharePoint 2010. When I insert an image into my content I see that spaces are added around the image. The spaces have default value 5px.
I would like to have 0px instead. The reason is that editors forget to set it to 0px manually and basically do not want to make the extra step.
I have found that in SharePoint core there is 14\template\features\publishinglayouts\provisionedui.xml file where the default values for spaces are set. I do not like an idea to make changes in the file at all because:
a. well it is core file and it could be changed in future by a
service pack for instanceb. I need to think about how to deploy the
changed file to a farm (I can create a feature which will replace the
file on all servers, but it sounds like a dirty hack).
Do you have better (or just any) ideas how can I achieve my goal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不太确定,但是您可以将 xml 文件上的间隔从 5 更改为 0 吗?
not really sure about it but can you just change the interval from 5 to 0 on that xml file?