mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 12:14:14 +02:00
[Doc] Remove unused code in Plugins Walkthroughs (#1172)
The `BoldMark` function has been inlined below, it is no longer used here
This commit is contained in:
committed by
Ian Storm Taylor
parent
b45e63c472
commit
a68a6466f9
@@ -91,10 +91,6 @@ Boom! Now we're getting somewhere. That code is reusable for any type of mark.
|
||||
Now that we have our plugin, let's remove the hard-coded logic from our app, and replace it with our brand new `MarkHotkey` plugin instead, passing in the same options that will keep our **bold** functionality intact:
|
||||
|
||||
```js
|
||||
function BoldMark(props) {
|
||||
return <strong>{props.children}</strong>
|
||||
}
|
||||
|
||||
// Initialize our bold-mark-adding plugin.
|
||||
const boldPlugin = MarkHotkey({
|
||||
type: 'bold',
|
||||
|
Reference in New Issue
Block a user