列表形式的默认内容编辑器不允许图像对齐

发布于 2024-08-18 21:48:12 字数 207 浏览 2 评论 0原文

我需要能够在 MOSS 2007 的公告列表中的“增强型富文本字段”中调整图像的对齐方式。但是,列表编辑表单中的默认内容编辑器没有提供执行此操作的方法。确保用户可以对齐图像的最快方法是什么?我的第一个想法是自定义 DispForm.aspx 和 EditForm.aspx 页面,但它们在内容区域中只有 ListForm Web 部件,据我所知,您无法从设计器自定义 ListForm Web 部件。

I need to be able to adjust the alignment of an image in an "Enhanced Rich Text Field" in an announcements list in MOSS 2007. However, the default content editor in the edit form for the list doesn't provide a way to do that. What's the fastest way for me to make sure users can align images? My first thought was to customize the DispForm.aspx and EditForm.aspx pages, but they just have the ListForm web part in the content region and as far as I know, you can't customize the ListForm web part from the designer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

如果没有你 2024-08-25 21:48:12

您无法自定义 LisForm Web 部件,但可以添加“自定义列表表单”来创建自定义编辑表单。也许您还没有看过这篇文章:http://weblogs.asp.net/jan/archive/2006/11/06/Custom-Edit-Forms-for-SharePoint-2007-Lists.aspx

那么你可以这样做一些 javascript hackery 插入您自己的按钮,然后调用类似于现有 RTE_InsertImage 函数的内容来调用弹出窗口并执行您需要的任何操作(您可以在 12\template 中找到此函数\layouts\1033\form.js

You can't customize the LisForm web part, but you can add a "custom list form" to create a custom edit form. Maybe you haven't seen this article: http://weblogs.asp.net/jan/archive/2006/11/06/Custom-Edit-Forms-for-SharePoint-2007-Lists.aspx

Then you could do some javascript hackery to insert your own button which then calls something similar to existing RTE_InsertImage function to call a pop-up window and do whatever you need (you'll find this function in 12\template\layouts\1033\form.js)

屋檐 2024-08-25 21:48:12

我看不到(或理解)你的问题。我创建了一个新的公告列表,创建了一个新项目,插入了图像,将其向右对齐,查看了该项目并且它起作用了。

然后我继续创建一个新的自定义列,选择多行,增强的富文本字段,编辑我的列表项,添加图像,将其居中,查看,它也可以工作。

我唯一注意到的是“丰富”控件不会出现在非 IE 浏览器上。

I fail to see (or understand) your issue. I created a new announcements list, created a new item, inserted an image, aligned it to the right, viewed the item and it worked.

Then I proceeded to create a new custom column, choose multiple lines,enhanced rich text field, edited my list item, added an image, centered it, viewed and it was also working.

The only thing I noticed is that the "rich" control does not appears on non-IE browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文