-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Createpost to v10 version (#225)
* Migrate createpost for v10 version * compatibiliy with older versions * Update to fixed typo * Fix old detection of CreatePost
- Loading branch information
Showing
7 changed files
with
97 additions
and
48 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
export const AdvancedTextEditor = (window as any).Components.AdvancedTextEditor; | ||
|
||
// Compatibility with pre v10 create post export | ||
export const CreatePost = (window as any).Components.CreatePost; | ||
|
||
export function isRHSCompatable(): boolean { | ||
return AdvancedTextEditor || CreatePost; | ||
} | ||
|
||
export const PostMessagePreview = (window as any).Components.PostMessagePreview; | ||
|
||
export const Timestamp = (window as any).Components.Timestamp; | ||
|
||
export const ThreadViewer = (window as any).Components.ThreadViewer; |