Reputation: 23
Whenever a link is typed in the RTE editor, it will automatically be enclosed in an tag and converted to a link. Is there a way to stop this behavior, other than removing each link manually?
I'm not that much of an expert, but I tried to use the "minimal.yaml" configuration for the RTE editor, and It basically done what I wanted since the minimal setting doesn't have the linking option at all, but I need all the other options that are not available in the minimal, and I need the option to create a link manually when needed, just not automatically.
Upvotes: 1
Views: 408
Reputation: 23
What I did, I commented the lined where the autolinking.js actually creates a URL from the typed link and commented that out.
I don't think this is the optimal solution, but it's doing what it's supposed to.
/typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/autolinking.js
editor.on('key', function(evt) {
if (this.mode !== 'source') {
if (evt.data.keyCode === spaceChar || evt.data.keyCode === tabChar || evt.data.keyCode === enterChar) {
//editor.autolinking(evt);
}
}
Upvotes: 0
Reputation: 874
You need to add a custom configuration file for the RTE. Follow this guide to do so : https://usetypo3.com/ckeditor.html
After that, in the removePlugins
section, add - autolinking
like this :
# Load default processing options
imports:
...
editor:
config:
...
removePlugins:
- autolinking
Upvotes: 2