t3x-rte_ckeditor_image | Image support in CKEditor for the TYPO3 ecosystem | Content Management System library
kandi X-RAY | t3x-rte_ckeditor_image Summary
kandi X-RAY | t3x-rte_ckeditor_image Summary
Image support in CKEditor for the TYPO3 ecosystem
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of t3x-rte_ckeditor_image
t3x-rte_ckeditor_image Key Features
t3x-rte_ckeditor_image Examples and Code Snippets
# TS Setup
lib.parseFunc_RTE {
// default class for images in bodytext:
nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib.class {
default = my-custom-class
}
}
# Page TSConfig
RTE.default.buttons.image.options.magic {
maxWidth = 1020 # Default: 300
maxHeight = 800 # Default: 1000
}
editor:
externalPlugins:
typo3image:
allowedExtensions: "jpg,jpeg,png"
Community Discussions
Trending Discussions on t3x-rte_ckeditor_image
QUESTION
I've downloaded the extension: https://github.com/netresearch/t3x-rte_ckeditor_image/blob/master/README.md
The images are rendering correctly except the resizing.
When I right click on an image in BE then select "Image Properties" I see the option to edit Width, Height, Title and Alt text. The Title and Alt text are rendering on FE correctly but the width/height is the original image size.
E.g. Image original size 2000px by 1000px, use Image Properties to resize to 200px by 100px. Clicking the "Source" button in the RTE shows the width/height attributes have been correctly set. However on clicking Save and View Page the original 2000px by 1000px is displayed in BE and FE
Oddly enough, if I use the Source button to resize the image width/height attributes this is saved correctly. However my editors want to use the Image Properties selector
Any advice? I'm using TYPO3 version 8.7.10
...ANSWER
Answered 2018-Nov-15 at 14:54Solved: the issue was that the absolute URL didn't match, so the magic image converter was using the original image dimensions when saving the image. See Line 393 onwards of RteHtmlParser.php
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install t3x-rte_ckeditor_image
Install the extension with composer from packagist composer req netresearch/rte-ckeditor-image:^10.1 download from TYPO3 TER
Activate the extension in Extension Manager via command line ./typo3/cli_dispatch.phpsh extbase extension:install rte_ckeditor_image
Add a preset for rte_ckeditor or override the default one (as below): <?php // EXT:my_ext/ext_localconf.php` $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:my_ext/Configuration/RTE/Default.yaml'; # EXT:my_ext/Configuration/RTE/Default.yaml imports: # Import default RTE config (for example) - { resource: "EXT:rte_ckeditor/Configuration/RTE/Default.yaml" } # Import the image plugin configuration - { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" } editor: config: # RTE default config removes image plugin - restore it: removePlugins: null
Enable RTE config preset (e.g. default) # Page TSConfig RTE.default.preset = default
Include extension Static Template file go to Template » Info/Modify » Edit whole template record » Includes choose CKEditor Image Support for Include static (from extensions)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page