-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(bbcode-dataprocessor): Fix & enable Hyperlink Rule
- Loading branch information
pkliesch
committed
Aug 24, 2023
1 parent
91a1ca1
commit 10006f5
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/ckeditor5-coremedia-bbcode/src/html2bbcode/rules/DefaultRules.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { boldRule } from "./Bold"; | ||
import { italicRule } from "./Italic"; | ||
import { underlineRule } from "./Underline"; | ||
import { hyperlinkRule } from "./Hyperlink"; | ||
|
||
export interface HTML2BBCodeRule { | ||
id: string; | ||
toData: (node: Node, content: string) => string | undefined; | ||
} | ||
|
||
export const defaultRules: HTML2BBCodeRule[] = [boldRule, italicRule, underlineRule]; | ||
export const defaultRules: HTML2BBCodeRule[] = [boldRule, italicRule, underlineRule, hyperlinkRule]; |
7 changes: 6 additions & 1 deletion
7
packages/ckeditor5-coremedia-bbcode/src/html2bbcode/rules/Hyperlink.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters