ckeditor-ckfinder的默认属性(宽度和高度)为上传的图像 [英] ckeditor-ckfinder default attributes (width and height) to uploaded images

查看:337
本文介绍了ckeditor-ckfinder的默认属性(宽度和高度)为上传的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在ckeditor中使用ckfinder上传图像时,使用css width&高度。我希望图像具有默认的width和height属性。我该怎么办?

When I upload images using ckfinder in the ckeditor the image displays nicely using css width & height. I would like images to have default width and height attributes. How can I accomplish that?

推荐答案

如果我没记错的话,CKFinder只是将文件上传到服务器,而不会改变它的分辨率!但是,您可以使用/创建CKEditor的插件来更改图像宽度&使用CKEditor的图像对话框时的高度!

If I'm not mistaken, CKFinder just uploads the file to the server, and does not changes its resolution! You can however, use/create a plugin for CKEditor to change the image width & height when using the image dialog of CKEditor!

Btw:该对话框允许您更改所选图像的宽度和高度,然后再将其放置在文档中 ! CKEditor放置在此处的值是实际宽度&所选图像的高度!

Btw: That dialog allows you to change the width and height of the selected image before placing it in your "document"! The values that are placed there by CKEditor are the real width & height of the selected image!

这篇关于ckeditor-ckfinder的默认属性(宽度和高度)为上传的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆