import CodeElement from './CodeElement' ; export default class WatermarkCode extends CodeElement { constructor ( private watermarkText ) { super ( ) ; } getCode ( ) { return `new roosterjs.Watermark('${ this . encode ( this . watermarkText ) }')` ; } }