mirror of
https://github.com/flarum/framework.git
synced 2025-01-30 14:03:17 +08:00
Fix 'polyfills' incorrect spelling, add LICENSE text for startsWith polyfill
This commit is contained in:
parent
f4e250f514
commit
eb561e6343
|
@ -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';
|
||||
|
||||
|
|
|
@ -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) {
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user