VFSContainer baseDir = FeedManager.getInstance().getItemContainer(post, blog);
// Description
description = uifactory.addRichTextElementForStringData("description", "feed.form.description", post.getDescription(), 8, -1, false,
false, baseDir, null, formLayout, ureq.getUserSession(), getWindowControl());
RichTextConfiguration descRichTextConfig = description.getEditorConfiguration();
// set upload dir to the media dir
descRichTextConfig.setFileBrowserUploadRelPath("media");
// Content
content = uifactory.addRichTextElementForStringData("content", "blog.form.content", post.getContent(), 18, -1, false, false,
baseDir, null, formLayout, ureq.getUserSession(), getWindowControl());
RichTextConfiguration richTextConfig = content.getEditorConfiguration();
// set upload dir to the media dir
richTextConfig.setFileBrowserUploadRelPath("media");
final FormLayoutContainer dateAndTimeLayout = FormLayoutContainer.createHorizontalFormLayout("feed.publish.date", getTranslator());
formLayout.add(dateAndTimeLayout);
dateAndTimeLayout.setLabel("feed.publish.date", null);
dateAndTimeLayout.setMandatory(true);