This commit is contained in:
George Berezhnoy 2017-02-23 13:32:41 +03:00 committed by Peter Savchenko
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

View file

@ -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 ) {

View file

@ -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