1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 16:21:18 +02:00

Add copyright notice for markdown toolbar code taken from GitHub

Refs #8
This commit is contained in:
David Sevilla Martin
2019-09-09 20:06:18 -04:00
parent df8869a39f
commit b04b82b3a5
3 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
/*!
* Original Copyright GitHub, Inc. Licensed under the MIT License.
* See license text at https://github.com/github/markdown-toolbar-element/blob/master/LICENSE.
*/
import insertText from './insertText';
import { blockStyle, isMultipleLines, multilineStyle, orderedList } from './styles';

View File

@@ -1,3 +1,8 @@
/*
* Original Copyright GitHub, Inc. Licensed under the MIT License.
* See license text at https://github.com/github/markdown-toolbar-element/blob/master/LICENSE.
*/
export let canInsertText = null;
export default (textarea, { text, selectionStart, selectionEnd }) => {

View File

@@ -1,3 +1,8 @@
/*
* Original Copyright GitHub, Inc. Licensed under the MIT License.
* See license text at https://github.com/github/markdown-toolbar-element/blob/master/LICENSE.
*/
export function isMultipleLines(string) {
return string.trim().split('\n').length > 1;
}