mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 08:29:52 +01:00
Fix (#165)
This commit is contained in:
parent
af74d72f38
commit
7f737774bb
5 changed files with 9 additions and 6 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -69,7 +69,10 @@ module.exports = function (paste) {
|
|||
|
||||
patterns.map( function (pattern) {
|
||||
|
||||
if (pattern.regex.test(string)) {
|
||||
var execArray = pattern.regex.exec(string),
|
||||
match = execArray && execArray[0];
|
||||
|
||||
if ( match && match === string.trim()) {
|
||||
|
||||
/** current block is not empty */
|
||||
if ( content.textContent.trim() && plugin == editor.settings.initialBlockPlugin ) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "codex.editor",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"description": "Codex Editor. Native JS, based on API and Open Source",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue