We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I see that CSS text-transform is one of the "factors that are not [currently] taken into consideration" in the Text Range Module.
text-transform
Can support be added for this? e.g. Using something like the following code:
function transformText(string, parentElement) { var computedStyle = window.getComputedStyle(parentElement); switch (computedStyle["text-transform"]) { case "capitalize": return string.replace(/\b\w/g, function (match) { return match.toUpperCase(); }); case "uppercase": return string.replace(/\w/g, function (match) { return match.toUpperCase(); }); case "lowercase": return string.replace(/\w/g, function (match) { return match.toLowerCase(); }); case "none": default: return string; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I see that CSS
text-transform
is one of the "factors that are not [currently] taken into consideration" in the Text Range Module.Can support be added for this? e.g. Using something like the following code:
The text was updated successfully, but these errors were encountered: