Menu

#17 SpellWord-plugin

open
nobody
None
5
2005-08-26
2005-08-26
Koen
No

Spellchecking in FCKeditor was no solution to me.
I wanted to have spellchecking in Dutch, but this ieSpell-
thing only works with English (or I'm to stupid to
understand how it works :-) ) and also Aspell is not
installed on the server I use.

So, i made my own plugin, which makes use of the
spellchecker in Microsoft Word.
It uses ActiveX, so it only can be used in Internet
Explorer and of course Microsoft Word has to be
installed on the client-computer.

Although this plugin isn't crossbrowser-compatible it can
be of use in some situations. I use it myself in a CMS
which I add to the list of 'trusted websites'. For trusted
websites i enable ActiveX.

Included in the attached zip-file is a readme-file.

Discussion

  • Frederik Frost Nielsen

    Logged In: YES
    user_id=915246

    thanks for a very cool plugin that seems to work on word
    2003 and IE 6+

    Im sure my spelling will be better now :D

    And I can have danish spellcheck very cool!!

     
  • Frederik Frost Nielsen

    Logged In: YES
    user_id=915246

    It works pretty well, but a minor thing: when you spellcheck
    the text is cleaned for styles, fonts types etc - so it is
    converted to plain-text. That is not very handy...

     
  • Koen

    Koen - 2005-09-07

    Logged In: YES
    user_id=952521

    Thanx for testing.
    The problem was caused, because i used
    FCK.EditorDocument.selection.createRange().text; to grab
    the content of the editor window.

    I changed it with FCK.EditorDocument.execCommand('copy');

    I works almost perfect now i think; there's only an empty
    paragraph at the beginning of the document. I consider that a
    minor problem.

    I've attached a new zip-file.

     
  • Koen

    Koen - 2005-09-07

    SpellWord

     
  • Frederik Frost Nielsen

    Logged In: YES
    user_id=915246

    It still remove all styles...

    When I spellcheck this:

    <strong>Hejsa</strong>, <font color="#99cc00">det</font>
    <u>g&aring;r fint</u> ogs&aring; her i byen...

    It is converted to this after the spellcheck is done:

    <div>Hejsa, det g&aring;r fint ogs&aring;</div>

    No more styles and then a div?

     
  • Koen

    Koen - 2005-09-08

    Logged In: YES
    user_id=952521

    Euhm ... it's working here, although the font colar is stripped
    out, which is caused by the original CleanWord()-function

     
  • Frederik Frost Nielsen

    Logged In: YES
    user_id=915246

    I dont know what I did wrong earlier - but know it works...

    You have made another great plugin I can also recommand
    openWord
    cleanWord

    Hint:

    To uncheck bIgnoreFont, and bRemoveStyles

    I used:

    function CleanWord( html )
    {
    var bIgnoreFont = '' ;
    var bRemoveStyles = '';

    Instead of;

    function CleanWord( html )
    {
    var bIgnoreFont = 'checked' ;
    var bRemoveStyles = 'checked';

     
  • rmunro

    rmunro - 2006-02-01

    Logged In: YES
    user_id=1355839

    A couple of things

    1) Any idea on how to use this fck_actions.js file addresed
    by kos32 that has been google cached? What file does this
    one replace? how do i hook it up to the current spell
    checker exactly? I wouldnt mind comparing it to SpellWord

    2) I've been using the current SpellWord and have noticed
    that if the selection is too big, Word says "You placed a
    large amount of text on the Clipboard. Do you want this text
    to be available to other applications after you quit Word".
    Any idea how to stop this from happening?

     
  • Kostya Sud

    Kostya Sud - 2006-02-01

    Logged In: YES
    user_id=1429471

    Enjoy http://kos.at.tut.by/SpellWord_kos32.zip
    :)

     
  • Ali St

    Ali St - 2006-04-03

    Logged In: YES
    user_id=1493009

    I have been trying this plugin as an alternative to the
    native FCKeditor solution. However I have identified a small
    bug. If the user opens to spell checker but then clicks the
    cancel button in the spell checker window... the content of
    the FCKeditor window is deleted. This can be recovered usign
    the undo button but this is a little counter intuative...

    I have hacked together a simple solution but someone else
    may have a better solution.

    You need to amend the following lines...

    FCK.Focus();
    FCKUndo.SaveUndoStep();
    if( text.length > 1 ){
    FCK.EditorDocument.body.innerHTML = _Word_FitIn(
    FCK.EditorDocument.body.innerHTML, text);
    } else {
    FCK.EditorDocument.body.innerHTML =
    FCK.EditorDocument.body.innerHTML;
    }

     

Log in to post a comment.

MongoDB Logo MongoDB