generated from idea2app/Next-Bootstrap-ts
-
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.
[migrate] replace Markdown IME with HTML editor (#14)
- Loading branch information
1 parent
915905a
commit fe685c2
Showing
7 changed files
with
139 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { FC } from 'react'; | ||
import { | ||
AudioTool, | ||
Editor, | ||
EditorProps, | ||
IFrameTool, | ||
ImageTool, | ||
OriginalTools, | ||
VideoTool, | ||
} from 'react-bootstrap-editor'; | ||
import { Constructor } from 'web-utility'; | ||
|
||
const ExcludeTools = [IFrameTool, AudioTool, VideoTool]; | ||
|
||
const CustomTools = OriginalTools.filter( | ||
Tool => !ExcludeTools.includes(Tool as Constructor<IFrameTool>), | ||
); | ||
|
||
const HTMLEditor: FC<EditorProps> = props => ( | ||
<Editor tools={CustomTools} {...props} /> | ||
); | ||
export default HTMLEditor; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
fe685c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for oss-toolbox ready!
✅ Preview
https://oss-toolbox-hna72dxo4-techquerys-projects.vercel.app
Built with commit fe685c2.
This pull request is being automatically deployed with vercel-action