Taiga UI 5 is out!

CopyProcessor CDK v5.0.0+

GitHub

Directive is used to processed text when coping

Usage

Try copy this text
    
      
    
    
      <tui-textfield class="tui-space_bottom-2">
    <label tuiLabel>Copy this</label>

    <input
        tuiInputNumber
        [tuiCopyProcessor]="numberProcessor()"
        [(ngModel)]="value"
    />
</tui-textfield>

<div [tuiCopyProcessor]="textProcessor">Try copy this text</div>