youssefreda9 commited on
Commit
cd72e8b
·
1 Parent(s): 7f379d2

fix: use correct editor ID (editor-container) - root cause of apply failures

Browse files
Files changed (1) hide show
  1. src/index.html +1 -1
src/index.html CHANGED
@@ -1307,7 +1307,7 @@
1307
  }
1308
 
1309
  function _replaceInEditor(newText) {
1310
- var editor = document.getElementById('editor');
1311
  if (!editor || !_quranCurrentQuery) return false;
1312
  closeQuranModal();
1313
  // Direct approach: get plain text, replace, set back
 
1307
  }
1308
 
1309
  function _replaceInEditor(newText) {
1310
+ var editor = document.getElementById('editor-container');
1311
  if (!editor || !_quranCurrentQuery) return false;
1312
  closeQuranModal();
1313
  // Direct approach: get plain text, replace, set back