[Description box shrinkage] when executing setRangeText of PasteMarkdownSyntax over Tb 71.0

On using myaddon, PasteMarkdownSyntax over Tb 71.0,
if executing setRangeText of texts on description text box, box was shrunken.
I don’t know why the box is shrunken. one of script sets used is as below.
Please, help me.

var syntaxArr = new Array;
syntaxArr = [’**’, ‘```’, ‘###’, ‘~~’, ‘----’, ‘|—’, ‘|—|’, ‘—|’, ‘|:—|’, ‘|:—:|’, ‘|—:|’, ‘alt text’];
var targetApply = syntaxArr[7];
window.frames[0].document.activeElement.allowEvents = true;
window.frames[0].document.activeElement.contentEditable = true;
window.frames[0].document.activeElement.defineGetter(‘isContentEditable’, function() {return true});
window.frames[0].document.activeElement.setRangeText(targetApply);

Sincerely.

From Sungho Hwang.

It is SOLVED after deleting error codes not needed as below.

var syntaxArr = new Array;
syntaxArr = [’**’, ‘```’, ‘###’, ‘~~’, ‘----’, ‘|—’, ‘|—|’, ‘—|’, ‘|:—|’, ‘|:—:|’, ‘|—:|’, ‘![alt text]( )’]
var targetApply = syntaxArr[7];
window.frames[0].document.activeElement.setRangeText(targetApply);

From Sungho Hwang.