Change paragraph default style to DocBook.
[gpl/argeo-suite.git] / publishing / org.argeo.publishing.ui / src / org / argeo / docbook / ui / Paragraph.java
index 8f9542cc2fdceeb2ebcec8f3e50f0b08e5d7a175..23f4111c95325a63347dc05e862a6f5ffa5b0e51 100644 (file)
@@ -7,6 +7,7 @@ import org.argeo.cms.ui.util.CmsUiUtils;
 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;
 
 /** An editable paragraph. */
 public class Paragraph extends EditableText implements SectionPart {
@@ -17,7 +18,7 @@ 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() {