MainFrame frame = controller.getMainFrame();
FeatureManager fm = controller.getFeatureManager();
boolean isRichEditor = bloggingPreferences.isRichEditor() || !fm.isPtbAdvanced();
if (fm.isPtbAdvanced())
{
PostEditorAdv edAdv = new PostEditorAdv(frame, isRichEditor);
java.util.List<TargetBlog> blogs = bloggingPreferences.getBlogs();
edAdv.setTargetBlogs(blogs.toArray(new TargetBlog[blogs.size()]),
new TargetBlog[] { targetBlog });
editor = edAdv;
} else
{