This is a migrated thread and some comments may be shown as answers.

[Solved] Fire spell checker by default - MVC3 Razor

0 Answers 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerome
Top achievements
Rank 1
Jerome asked on 13 Sep 2011, 09:18 PM
Hello,
I have been looking all over forums / google to figure out how to trigger the spellchecker by default when binding the editor to a model property in mvc3 razor? I can pull the property into the editor, save it back to the database but I cannot figure out how to trigger spell checking when the editor is bound. It works once I right click and click "Check Spelling". Can you please help? Here is the code below: 
            @{ Html.Telerik().EditorFor(m => m.Model.Comments)
           .Name("Model.Comments")
           .HtmlAttributes(new { style = "width:100%; height:20px; background-color:#FFFFFF;" })
           .Encode(false)
           .Tools(tools => tools
                .Clear()
            )
           .Render();
            }
Is there a way through the .Tools() or .HtmlAttributes()
Can anyone help? Thanks.
Tags
Editor
Asked by
Jerome
Top achievements
Rank 1
Share this question
or