Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 2.31.1
- `Improvement` - Default protocol for inline links changed to "https"

### 2.31.0

- `New` - Inline tools (those with `isReadOnlySupported` specified) can now be used in read-only mode
Expand Down
4 changes: 2 additions & 2 deletions src/components/inline-tools/inline-tool-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default class LinkInlineTool implements InlineTool {
}

/**
* Add 'http' protocol to the links like 'vc.ru', 'google.com'
* Add 'https' protocol to the links like 'vc.ru', 'google.com'
*
* @param {string} link - string to process
*/
Expand All @@ -374,7 +374,7 @@ export default class LinkInlineTool implements InlineTool {
isProtocolRelative = /^\/\/[^/\s]/.test(link);

if (!isInternal && !isAnchor && !isProtocolRelative) {
link = 'http://' + link;
link = 'https://' + link;
}

return link;
Expand Down
Loading