From 28c002d807310002613edf9d9fb451b67e0b40f4 Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Thu, 22 Feb 2018 11:09:07 +0530 Subject: [PATCH] fix: insert link once closes #61 --- docs/injectables/CommandExecutorService.html | 1 - src/app/ngx-editor/common/services/command-executor.service.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/injectables/CommandExecutorService.html b/docs/injectables/CommandExecutorService.html index cfd97146..053559b9 100644 --- a/docs/injectables/CommandExecutorService.html +++ b/docs/injectables/CommandExecutorService.html @@ -1004,7 +1004,6 @@

if (restored) { document.execCommand('insertHTML', false, newUrl); } - document.execCommand('insertHTML', false, newUrl); } else { throw new Error('Only new links can be inserted. You cannot edit URL`s'); } diff --git a/src/app/ngx-editor/common/services/command-executor.service.ts b/src/app/ngx-editor/common/services/command-executor.service.ts index 9cc678b4..bfceb7f8 100644 --- a/src/app/ngx-editor/common/services/command-executor.service.ts +++ b/src/app/ngx-editor/common/services/command-executor.service.ts @@ -112,7 +112,6 @@ export class CommandExecutorService { if (restored) { document.execCommand('insertHTML', false, newUrl); } - document.execCommand('insertHTML', false, newUrl); } else { throw new Error('Only new links can be inserted. You cannot edit URL`s'); }