无论如何,有没有使用 ckeditor 拥有右侧或左侧水平空间
我正在使用 ckeditor,我的内容中有很多图片。我看到的一个问题是,您可以在图片周围添加水平或垂直空间,但不能只设置右侧或左侧水平图片。通常,如果我在页面左侧有一张图片,在右侧有内容,我只想设置右边距(以避免图像在左侧缩进)
查看 ckeditor demo,我只看到可以设置图片两边的空格。无论如何,有没有办法解决这个问题而无需执行自定义CSS,因为我想为非技术用户提供此功能?
I am using ckeditor and I have a number of pictures in my content. One issue i see is that you have the ability to add horizontal or vertical space around a picture but you can't just set a right or just a left horizontal picture. Normally if I have a picture on the left side of a page and the content to the right, I would just want to set the right margin (to avoid the image being indented on the left)
from looking at the ckeditor demo, I only see the ability to set the space on both sides of the picture. Is there anyway around this without having to do custom css as I want to give this feature for non technical users?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这使用自定义 CSS,但它在 ckeditor ui 中;右键单击图像,单击高级选项选项卡;更改边距以满足您的需求。向左冲,margin-left:0;向右刷新将是 margin-right:0
this uses custom css, but its in the ckeditor ui; right click on the image, click on the advanced option tab; change the margins to fit your needs. flushed left, margin-left:0; flushed right will be margin-right:0
当我们右键单击 ckeditor 演示中的图像时,它会显示一个选项作为图像属性。当我们单击此按钮时,将弹出一个模型窗口。该模型窗口具有对齐属性。可以根据需要将其设置为向左或向右。
希望这会对您有所帮助。
When we right click image in ckeditor demo, It is showing one option as image properties. When we click on this a model window will popup. This model window has alignment property. One can set it to left or right as required.
Hope this will help you.
如果我们在 hspace 中放入 0,在 vspace 中放入 0 并调整alignment = left|right,会怎么样。
What if we put 0 in hspace and 0 in vspace and adjust alignment = left|right.