Dominique Pellé <dominique.pe...@gmail.com> wrote:

> Daniel Naber <daniel.na...@languagetool.org> wrote:
>
>> On 2014-02-16 13:54, Dominique Pellé wrote:
>>
>> > So how about we highlight the mistakes in the example
>> > sentences even without having to press "Check Text"?
>>
>> I have implemented this now, let's see how it works.
>
>
> Thanks Daniel.
>
> It works when I go the homepage, however, if I change the
> language by clicking on bottom left button to select a language,
> then it shows the sample sentence in the selected language
> without highlighting mistakes.


Maybe this patch fixes it, but I did not checkin, as
I don't have the environment to test the  PHP page:

diff --git a/include/header.php b/include/header.php
index 93a15a7..a5f6762 100644
--- a/include/header.php
+++ b/include/header.php
@@ -327,6 +327,7 @@
                     if (newText) {
                         tinyMCE.activeEditor.setContent(newText);
                         tinyMCE.get('checktext').focus();
+                        doit(); // check immediately when changing language
                     } else {
                         <?php if($addYourTextHere) { ?>
                         tinyMCE.activeEditor.setContent("<?=
$addYourTextHere ?>");


Regards
Dominique

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to