}
private RtePlugin buildLinksPlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.links().length > 0) {
Links linksAnnotation = rteAnnotation.links()[0];
List<String> features = new ArrayList<String>();
if (linksAnnotation.modifylink()) {
features.add("modifylink");
}
if (linksAnnotation.unlink()) {
features.add("unlink");
}
if (linksAnnotation.anchor()) {
features.add("anchor");
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("table");
widgetParameters.setFeatures(convertFeatures(features));