Skip to content

Commit

Permalink
fixing Enhanched Editor button only partially renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
FlominatorTM committed Mar 11, 2025
1 parent b7fa552 commit ebed3a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/features/clipboard_and_notes/clipboard_and_notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ function copyClippingToClipboard(element) {
const enhancedEditorButton = $("#toggleMarkupColor");
if (
enhancedEditorButton.attr("value") == "turn on enhanced editor" ||
enhancedEditorButton.attr("value") == "Turn On Enhanced Editor" || //toggles once used
$("#mBioWithoutSources").length ||
$("#photo_upload").length ||
$("body.profile").length ||
Expand Down
5 changes: 4 additions & 1 deletion src/features/family_lists/family_lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ async function getList(functionName) {
break;
}
copyToClipboardAPI(result);
if (document.querySelector("#toggleMarkupColor").value == "turn on enhanced editor") {
if (
document.querySelector("#toggleMarkupColor").value == "turn on enhanced editor" ||
document.querySelector("#toggleMarkupColor").value == "Turn On Enhanced Editor" /*toggles once used*/
) {
pasteResult();
} else {
showCopyMessage(message, otherMessage);
Expand Down

0 comments on commit ebed3a3

Please sign in to comment.