From 40ff071c9ddbe2b0691f7e4f439e39f85604610f Mon Sep 17 00:00:00 2001 From: Flarnie Marchan Date: Sat, 22 Apr 2017 18:04:34 -0700 Subject: [PATCH] Add es6 polyfill to all examples **what is the change?:** Draft uses some ES6 syntax and assumes users will pair it with an ES6 polyfill. See https://github.com/facebook/draft-js/blob/c12640f05e8328f5c97902c0c5e94a02ba9f58be/docs/Advanced-Topics-Issues-and-Pitfalls.md#polyfills **why make this change?:** When testing some examples in IE they were not rendering, and threw an error because we use `String.prototype.startsWith` in Draft. **test plan:** Open the 'convertFromHTML' and 'media' example files in IE, and they will render. **issue:** https://github.com/facebook/draft-js/issues/1165 --- examples/draft-0-10-0/convertFromHTML/convert.html | 1 + examples/draft-0-10-0/media/media.html | 1 + examples/draft-0-9-1/convertFromHTML/convert.html | 1 + examples/draft-0-9-1/media/media.html | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/draft-0-10-0/convertFromHTML/convert.html b/examples/draft-0-10-0/convertFromHTML/convert.html index 4ec2fddcff..353af91306 100644 --- a/examples/draft-0-10-0/convertFromHTML/convert.html +++ b/examples/draft-0-10-0/convertFromHTML/convert.html @@ -24,6 +24,7 @@ + + + +