Здравствуйте
Бьюсь с подключением yandex speller. Ни в какую не хочет работать.
Документацию читал
https://tech.yandex.ru/speller/doc/dg/concepts/Abo...
Всё делаю, как описано в ней. А работать не хочет.
Может у кого-нибудь есть идеи на счет решения этой проблемы?
Код моей страницы с yandex speller
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- FORM -->
<form action="" class="ctrl_1" name="myform" id="myform">
<textarea class="textarea" cols='100' rows="30"></textarea>
<br>
<!-- BUTTONS -->
<button name="cmdSpell" type="button" onclick="spellCheck()">Проверить правописание</button>
<button type="button" onclick="speller.optionsDialog()"> Параметры...</button>
</form>
<!-- FORM -->
</body>
<!-- Jquery -->
<script src="js/jquery-2.1.1.min.js"></script>
<!-- Speller yandex -->
<script type="text/javascript" src="speller/spell.js"></script>
<!-- Speller yandex -->
<script type="text/javascript">
var speller = new Speller({ url:"speller", lang:"ru", options:Speller.IGNORE_URLS });
function spellCheck() {
var form = document.forms["myform"];
speller.check([form.ctrl_1]);
}
</script>
</html>