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:
@@ -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';
|
||||
|
||||
|
@@ -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 }) => {
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user