Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Productivity and Design Tools
How to change the editor>insert link default web address content from "http://" to "https://"
See screenshot
Hi Morten,
Thanks for the providing image.
Firstly, you can handle the "execute" event:
$("#editor").kendoEditor({ execute:(e)=>{ .... }
Then when in the event handler get the content of input and split it. This way we can easily add 's' and change the "HTTP" to "HTTPS". The index 4 is used as obviously "s" will be always in the same position, "5" in our way:
previousContent = document.querySelector('#k-editor-link-url').value.split(''); if(previousContent[4] != 's'){ previousContent.splice(4,0,'s'); } document.querySelector('#k-editor-link-url').value = previousContent.join('');
All examples above are summarized in the sample dojo example.
I hope this will help you.
Regards, Lyuboslav Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.