Closed nostadt closed 2 years ago
To avoid BC, the video-id could be configured as an additional allowed value.
Oh, this actually works already.
@nostadt Hey, i'm so sorry I missed this, i don't seem to have notifications turned on - glad you figured it out & i'm so happy to see someone else using it!
No problem. Haha, it's indeed valuable. The customer wanted to paste the source code directly into the CKEditor 👀. Luckily you have this solution at hand. So it was easier to talk him out of his initial idea.
@nostadt If they do want to paste the URL, they just need to make sure there is a space between that and the ]
- the shortcodes EXT will strip the A tag and process the URL as expected (see the "Usage" section ⚠️ - https://github.com/liquidlight/typo3-shortcodes#usage )
Summary / problem to solve
Currently the full URL has to be used. If there is no space between the URL and closing
]
and you hitspace
, or justenter
the CKEditor will make the URL clickable and therefore the parsing does not work anymore.Example
Now, when placing the cursor after
]
followed by pressingspace
you will receive the following result:And here's the
HTML
that will be generated:In FE it looks like this:
Instead I suggest following:
In my setup it worked fine.
Of course the URL will need to be provided in the PHP class that takes care of the replacement.
Specific project use-cases
Any kind of project IMO.
Blockers
Not that I can think of.
More details, logs and/or screenshots
TYPO3 version: v10
typo3-shortcodes: v1.2.2