insert_without_lan('"'); function insert_without_lan(str) { if (app.selection.length > 0 && app.selection[0].hasOwnProperty('baseline')) { if (app.selection[0].constructor.name == 'InsertionPoint') { var old_lan = app.selection[0].appliedLanguage; app.selection[0].appliedLanguage = app.languagesWithVendors.item(0); app.selection[0].contents = str; app.selection[0].insertionPoints.lastItem().appliedLanguage = old_lan; } else { app.selection[0].insertionPoints.firstItem().appliedLanguage = app.languagesWithVendors.item(0); app.selection[0].insertionPoints.firstItem().contents = str; } } }
| 27.11.2023