FAL的Typo3 CKEditor图像 [英] Typo3 CKEditor image from FAL

查看:114
本文介绍了FAL的Typo3 CKEditor图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CKEditor和 rte_ckeditor_image 设置了全新的TYPO3 8.7.4安装,以从FAL获取图像。

I set up a fresh TYPO3 8.7.4 installation with CKEditor and rte_ckeditor_image to get images from FAL.

rte_ckeditor_image 的文档中说:


最大尺寸与魔术图片
的配置,必须在页面TSConfig中设置:

The maximum dimensions relate to the configuration for magic images which have to be set in Page TSConfig:

# Page TSConfig
RTE.default.buttons.image.options.magic {
    maxWidth = 1020  # Default: 300
    maxHeight = 800  # Default: 1000
}


我这样做了,但是我仍然不能使图像的宽度大于300px。

I did this, but still I can't make the width of an image bigger than 300px.

我已经看过TYPO3的源代码。
有一个文件 typo3 / sysext / core / Classes / Resource / Service / MagicImageService.php ,该文件有两个变量: $ magicImageMaximumWidth $ magicImageMaximumHeight 。如果更改它们的值,则可以使图像的宽度大于300px。

I looked at the source code from TYPO3 already. There is a file typo3/sysext/core/Classes/Resource/Service/MagicImageService.phpwhich got two variables: $magicImageMaximumWidth and $magicImageMaximumHeight. If change the value of them, I can make the width of an image bigger then 300px.

文件还具有一个函数 setMagicImageMaximumDimensions(array $ rteConfiguration)应该会更改两个变量,但似乎并没有改变。

The file got also a function setMagicImageMaximumDimensions(array $rteConfiguration) which should change thoose two variables but seems like it doesn't do so.

我做错了还是不可能更改最大图像尺寸?

Did I do something wrong or is it impossible to change the maximumg image dimensions?

谢谢。

推荐答案

删除在maxWidth和maxHeight(#默认值:xxx )之后添加注释,然后重试。

Remove the comments after maxWidth and maxHeight (# Default: xxx) and try again.

仅允许在TYPO3中添加注释,因为新行未内联。

Comments in TYPO3 are only allowed as new row not inline.

这篇关于FAL的Typo3 CKEditor图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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