Comments (4)
CKEditor 4.0.4 is out with a fix for this. Thanks again!
from ckeditor.
Until this is addressed I'm using this javascript code to strip this out on the front end to some effect.
function rewriteLinks(stringToStrip) {
// Regular expression to match the string to strip with optional delimiters
const regex = new RegExp(`(?:/|\\?|&)?${stringToStrip}(?:/|\\?|&)?`, 'g');
const links = document.querySelectorAll('a');
for (const link of links) {
const href = link.href;
const newHref = href.replace(regex, '');
// Check if the URL changed to avoid unnecessary modifications
if (href !== newHref) {
link.href = newHref;
}
}
}
rewriteLinks('#entry:(.*?):url');
from ckeditor.
Hi, thanks for reporting! I raised a PR for this.
from ckeditor.
I can confirm this: Craft 5.0.1 // CKEditor 4.0.3
from ckeditor.
Related Issues (20)
- Nested Entries: invalid Entry ID in custom plugin
- Class attribute not retained with migration from Redactor HOT 2
- Cannot add inline-style tag to element HOT 1
- Twig length filter no longer returns the length of the field contents HOT 3
- Condition rules result in errors on the edit forms HOT 3
- Not able to scroll in the link site selector HOT 2
- Possible regression: Embeds Stripped Out Regardless of HTML Purifier Config HOT 3
- Would Give Firstborn Child for a JSON file Config of CKEditor Instead of CMS Configuration
- I have version 3.8.3 of the CKEditor plugin and running "php craft ckeditor/convert" returns "Unknown command: ckeditor/convert" HOT 6
- It is not possible to resize images and remove the set width and height values HOT 1
- javascript cross-origin error on entry preview with ckeditor field HOT 1
- Word Count Regex Doesn't Recognize Single Opening Quote HOT 2
- [4.x] - Nested CKEditor fields deleting content and functionality not working HOT 2
- CKEditor diverting the Link Open in a new tab, all the links back to toggle 'off HOT 1
- Documentation about DDL incorrect? HOT 3
- Internal links in "Translated for each site group" default link location
- Issue with Sub-Text Field on Navigation Menu After CKEditor Conversion HOT 7
- Add config attribute to field to help scope styles by assigned CKEditor configuration HOT 1
- CKEditor + New Entry Type + Custom HTML Purifier. Entry Type is stripped by HTML Purifier HOT 1
- CKEditor toolbar display issue when using 'Show more items' button and dropdown icons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckeditor.