Hi,
Is there a way to disable spell checking at the application level? Or better still disable it on specific TextFields?
Thanks,
David
Hi,
Is there a way to disable spell checking at the application level? Or better still disable it on specific TextFields?
Thanks,
David
Thank you for the information!
Here is a simple solution that worked for me:
@com.vaadin.ui.ClientWidget(PATH.TO.YOUR.widgetset.client.ui.VNonSpellcheckingTextArea.class)
public class NonSpellcheckingTextArea extends TextArea {
}
public class VNonSpellcheckingTextArea extends VTextArea {
/**
* Constructs an empty TextArea.
*/
public VNonSpellcheckingTextArea() {
super();
this.getElement().setAttribute("spellcheck", "false");
}
}
Ticket # 15186
has been opened requesting the ability to disable the spellcheck attribute now supported by most browsers.
Currently under review, as of 2015-03.
The easiest workaround is to use
Attributes
add-on:
Attribute spellcheckAttr = new Attribute("spellcheck", "false");
spellcheckAttr.extend(textField);