mirror of
https://github.com/flarum/core.git
synced 2025-07-21 00:31:17 +02:00
Add copyright notice for markdown toolbar code taken from GitHub
Refs #8
This commit is contained in:
@@ -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 insertText from './insertText';
|
||||||
import { blockStyle, isMultipleLines, multilineStyle, orderedList } from './styles';
|
import { blockStyle, isMultipleLines, multilineStyle, orderedList } from './styles';
|
||||||
|
|
||||||
|
@@ -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 let canInsertText = null;
|
||||||
|
|
||||||
export default (textarea, { text, selectionStart, selectionEnd }) => {
|
export default (textarea, { text, selectionStart, selectionEnd }) => {
|
||||||
|
@@ -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) {
|
export function isMultipleLines(string) {
|
||||||
return string.trim().split('\n').length > 1;
|
return string.trim().split('\n').length > 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user