Fix 'polyfills' incorrect spelling, add LICENSE text for startsWith polyfill

This commit is contained in:
David Sevilla Martin 2019-08-03 09:14:06 -04:00
parent f4e250f514
commit eb561e6343
3 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import { extend } from 'flarum/extend';
import TextEditor from 'flarum/components/TextEditor';
import MarkdownArea from 'mdarea';
import './pollyfills';
import './polyfills';
import MarkdownToolbar from './components/MarkdownToolbar';
import MarkdownButton from './components/MarkdownButton';

View File

@ -1,3 +1,4 @@
/*! https://mths.be/startswith v0.2.0 by @mathias */
if (!String.prototype.startsWith) {
Object.defineProperty(String.prototype, 'startsWith', {
value: function(search, pos) {

View File

@ -1,5 +1,5 @@
import insertText from './insertText';
import {blockStyle, isMultipleLines, multilineStyle, orderedList} from "./styles";
import { blockStyle, isMultipleLines, multilineStyle, orderedList } from './styles';
export const styleSelectedText = (textarea, styleArgs) => {
const text = textarea.value.slice(textarea.selectionStart, textarea.selectionEnd);