Skip to content

Commit

Permalink
Remove log console unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Sep 14, 2023
1 parent bb708d4 commit 56d820a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/src/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class HtmlEditorState extends State<HtmlEditor> {
var isInList = false;
function onSelectionChange() {
//console.log|("onSelectionChange");
let {anchorNode, anchorOffset, focusNode, focusOffset} = document.getSelection();
// traverse all parents to find <b>, <i> or <u> elements:
var isBold = false;
Expand All @@ -184,7 +183,6 @@ class HtmlEditorState extends State<HtmlEditor> {
// if (!boundingRectFound && node.getBoundingClientRect) {
// var boundingRect = node.getBoundingClientRect();
// if (boundingRect) {
// console.log('bounding rect found for', node, boundingRect);
// boundingRectFound = true;
// window.flutter_inappwebview.callHandler('OffsetTracker', JSON.stringify(boundingRect));
// }
Expand Down Expand Up @@ -369,7 +367,6 @@ class HtmlEditorState extends State<HtmlEditor> {
}
function onKeyDown(event) {
//console.log('keydown', event.key, event);
if (!isInList && (event.keyCode === 13 || event.key === 'Enter')) {
if (whichTag('blockquote')) {
document.execCommand('InsertParagraph');
Expand Down
3 changes: 0 additions & 3 deletions lib/src/utils/javascript_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,8 @@ const String jsHandleSignature = '''
}
function handleOnClickSignature() {
console.log("handleOnClickSignature");
const contentElement = document.querySelector('#editor > .tmail-signature > .tmail-signature-content');
const buttonElement = document.querySelector('#editor > .tmail-signature > .tmail-signature-button');
console.log("contentElement: " + contentElement);
console.log("buttonElement: " + buttonElement);
if (contentElement && buttonElement) {
if (contentElement.style.display === 'block') {
contentElement.style.display = 'none';
Expand Down

0 comments on commit 56d820a

Please sign in to comment.