all files / packages/inline-wrapper/ InlineWrapper.js

50% Statements 1/2
100% Branches 0/0
0% Functions 0/1
50% Lines 1/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                           
import { InlineNode } from '../../model'
 
class InlineWrapper extends InlineNode {
  getWrappedNode() {
    return this.getDocument().get(this.wrappedNode)
  }
}
 
InlineWrapper.schema = {
  type: 'inline-wrapper',
  wrappedNode: 'id'
}
 
export default InlineWrapper