From b9de26d6f77f84b1d73682e9452058b0ee70ee26 Mon Sep 17 00:00:00 2001 From: BlueGreenMagick Date: Fri, 28 Feb 2020 23:05:09 +0900 Subject: [PATCH] add outline if in edit mode --- __init__.py | 7 ++++++- config.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 6feb68e..30496d9 100644 --- a/__init__.py +++ b/__init__.py @@ -110,7 +110,12 @@ def myRevHtml(reviewer, _old): if config["process_paste"]: js += PASTEJS - return _old(reviewer) + js + if config["outline"]: + style = "" + else: + style = "" + + return _old(reviewer) + js + style def myRevBottomHTML(reviewer, _old): diff --git a/config.json b/config.json index f5ead58..5dc11d7 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,6 @@ { "ctrl_click":false, + "outline": true, "process_paste": true, "remove_span": false, "tag": "div",