imageplaceholder.js 401 B

12345678910111213
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global document */
  6. import placeholder from '../../theme/icons/image_placeholder.svg';
  7. const img = document.createElement( 'img' );
  8. img.src = 'data:image/svg+xml;utf8,' + encodeURIComponent( placeholder );
  9. document.getElementById( 'container' ).appendChild( img );