Typo3 CKEditor image from FAL

半世苍凉 提交于 2019-12-11 04:19:55

问题


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

In the documentation from rte_ckeditor_image it says:

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
}

I did this, but still I can't make the width of an image bigger than 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.

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?

Thanks.


回答1:


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

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



来源:https://stackoverflow.com/questions/45858784/typo3-ckeditor-image-from-fal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!