Allows create and edit workflows through EditEngine. Not sure I did the 'blog' stuff correct.
Details
Details
- Reviewers
epriestley - Commits
- Restricted Diffusion Commit
rP10ed33052361: Update PhamePost to EditEngine
Create a new post, edit a post, move a post.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- phame-post-edit-engine (branched from master)
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 9828 Build 11828: Run Core Tests Build 11827: arc lint + arc unit
Event Timeline
Comment Actions
I think the blog stuff is OK. We might be able to clean up the part where it loads it eventually, but that seems fine for now.
Let me take a look at hooking up previews on top of this.
src/applications/phame/controller/post/PhamePostEditController.php | ||
---|---|---|
34 | We should have a if (!$blog) { return new Aphront404Response(); } bit here. |
Comment Actions
You should be able to use setPreviewPanel() to get the previews working now after D14887, let me know if you run into issues.
Comment Actions
- !blog
- update to new edit stuff
src/applications/phame/editor/PhamePostEditEngine.php | ||
---|---|---|
34 | This causes issues if actually trying to create a new blog post form, since $blog is required for a new post. Not sure what the correct fix is. |
Comment Actions
I think you can probably do something like this:
$viewer = $this->getViewer(); if ($this->blog) { $blog = $this->blog; } else { $blog = PhameBlog::initializeNewBlog($viewer); } return PhamePost::initializePost($viewer, $blog);
Basically, just make a dummy empty blog for the meta-edit-form-edit stuff.