User Tools

Site Tools


projects:wicket:codemirror

The wicket codemirror component integrations provides a behavior for textareas.

Usage

The artifacts are available from jcenter.

compile group: 'com.thorstenmarx.wicket', name: 'codemirror', version: '0.3.0'

Use the codemirror behavior in your wicket code.

// create settings instance
CodemirrorSettings settings = new CodemirrorSettings();
// select theme
settings.setTheme(Theme.base16_dark);
// select mode
settings.setMode(Mode.XML);
// add to textarea		
textArea.add(new CodemirrorBehavior(settings));
projects/wicket/codemirror.txt · Last modified: 2017/11/06 09:54 (external edit)