Lines 22-27
Link Here
|
22 |
[% IF rancor %] |
22 |
[% IF rancor %] |
23 |
function RancorReplaceField( new_text, ind_1, ind_2 ){ |
23 |
function RancorReplaceField( new_text, ind_1, ind_2 ){ |
24 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
24 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
|
|
25 |
// The new_text is entity-encoded and we want decoded text |
26 |
new_text = new DOMParser().parseFromString(new_text, 'text/html').body.innerText; |
25 |
cur_field.setText(new_text); |
27 |
cur_field.setText(new_text); |
26 |
[% IF update_ind1 %]cur_field.setIndicator1(ind_1);[% END %] |
28 |
[% IF update_ind1 %]cur_field.setIndicator1(ind_1);[% END %] |
27 |
[% IF update_ind2 %]cur_field.setIndicator2(ind_2);[% END %] |
29 |
[% IF update_ind2 %]cur_field.setIndicator2(ind_2);[% END %] |
28 |
- |
|
|