import org.argeo.cms.ui.viewers.SectionPart;
import org.argeo.cms.ui.widgets.EditableText;
import org.argeo.cms.ui.widgets.TextStyles;
+import org.argeo.docbook.DbkType;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
/** An editable paragraph. */
public class Paragraph extends EditableText implements SectionPart {
public Paragraph(TextSection section, int style, Node node) throws RepositoryException {
super(section, style, node);
this.section = section;
- CmsUiUtils.style(this, TextStyles.TEXT_PARAGRAPH);
+ CmsUiUtils.style(this, DbkType.para.name());
}
public TextSection getSection() {
return section;
}
+ @Override
+ protected Label createLabel(Composite box, String style) {
+ Label lbl = super.createLabel(box, style);
+ CmsUiUtils.disableMarkupValidation(lbl);
+ return lbl;
+ }
+
@Override
public String getPartId() {
return getNodeId();