Last active
June 19, 2020 18:02
-
-
Save torifat/1352167 to your computer and use it in GitHub Desktop.
Enable Avro Phonetic in all textboxes & textareas with a callback function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="path/to/avro-x.x.x.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function(){ | |
$('textarea, input[type=text]').avro({'bangla':true}, | |
function(isBangla){ | |
alert('Bangla enabled = ' + isBangla); | |
} | |
); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cann't add avro to react app
TypeError: jquery__WEBPACK_IMPORTED_MODULE_3___default(...)(...).avro is not a function
import React, { useEffect } from 'react';
import logo from './logo.svg';
import './App.css';
import $ from 'jquery'
function App() {
function handleBangla(e){
e.preventDefault()
}
return (
<button onClick={(e)=>handleBangla(e)}>enable Bangla
);
}
export default App;