diff --git a/components/Deck/Presentation/PresentationSlide.js b/components/Deck/Presentation/PresentationSlide.js index 77f5728da..b417dd134 100644 --- a/components/Deck/Presentation/PresentationSlide.js +++ b/components/Deck/Presentation/PresentationSlide.js @@ -8,9 +8,18 @@ import SlideViewStore from '../../../stores/SlideViewStore'; let sectionStyle = { 'top': 'unset !important'}; class PresentationSlide extends React.Component { + constructor(props) { + super(props); + this.replaced = false; + } render(){ + let slideContent = ''; + if (this.replaced === false && this.props.content !== ''){ + slideContent = this.props.content.replace(/ src=/g, ' data-src='); + this.replaced = true; + } return ( -
+
); }