3

How to use multiple font face in single textarea?

Example:

<style>
@font-face {    
     font-family: 'MULLAI';     
     src: url('MULLAI.woff') format('woff'); 
           }  
.tamil { 
     font-family:MULLAI; 
     font-size:18px; 
      }
.english { 
    font-family:"Times New Roman", Times, serif; 
    font-size:13px; 
         } 
</style>

<textarea><a class="english">Hello</a>,<a class="tamil">ïH¥Õ£L</a></textarea>

I am expecting the output should be

Hello வணக்கம்

Actually i need to include multiple languages in single text area. I tried lots of jquery editor. But its not supporting multiple languages in single textarea. Please help me to resolve this problem. Thank you in advance.

Dinesh G
  • 1,325
  • 4
  • 17
  • 24

1 Answers1

0

You cannot do it. DOM cannot be insert to textarea element. You can use content editable for it. Also you can find more information here.

Community
  • 1
  • 1
ebilgin
  • 1,242
  • 10
  • 19