|
@ -1,12 +1,14 @@ |
|
|
import WhiteLister from 'pretty-text/white-lister'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'dropcap', |
|
|
name: 'dropcap', |
|
|
|
|
|
|
|
|
initialize() { |
|
|
initialize() { |
|
|
const whiteLister = new WhiteLister(); |
|
|
|
|
|
whiteLister.whiteListFeature("dropcap", [ |
|
|
|
|
|
'span.dropcap' |
|
|
|
|
|
|
|
|
setup(helper); |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function setup(helper) { |
|
|
|
|
|
helper.whiteList([ 'span.dropcaps', |
|
|
|
|
|
'span.sclass' |
|
|
|
|
|
]); |