Page MenuHomePhabricator

Use PHUIRemarkupPreviewView in Phame
ClosedPublic

Authored by chad on Nov 23 2015, 5:52 PM.
Tags
None
Referenced Files
F13045479: D14552.diff
Wed, Apr 17, 11:40 PM
Unknown Object (File)
Thu, Apr 11, 8:30 AM
Unknown Object (File)
Tue, Apr 9, 1:55 AM
Unknown Object (File)
Fri, Apr 5, 6:01 AM
Unknown Object (File)
Sun, Mar 31, 11:18 PM
Unknown Object (File)
Tue, Mar 26, 12:27 PM
Unknown Object (File)
Mar 6 2024, 5:26 AM
Unknown Object (File)
Mar 6 2024, 5:26 AM
Subscribers

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rPdf7f21b4e811: Use PHUIRemarkupPreviewView in Phame
Summary

Reuse PHUIMarkupPreviewView in Phame for consistency, less custom code. Also, doesn't work (JS issue).

Test Plan

New Post, Edit Post, Save Post

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Use PHUIRemarkupPreviewView in Phame.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
webroot/rsrc/js/application/phame/phame-post-preview.js
62–66

I want to dump the URI/Preview stuff, but I don't understand JS at all, nor JX. How can I simplify this?

Maybe?

src/applications/phame/controller/post/PhamePostEditController.php
184–189

Delete this.

webroot/rsrc/js/application/phame/phame-post-preview.js
1

Then delete this entire file.

No I went down that path, it prefills the "Phame Title" slug, which is nice.

Ah. Try just deleting:

var getdata = ...
var request = ...
var trigger = ...
(3x) JX.DOM.listen(..., ..., trigger);
request.start()
chad edited edge metadata.
  • yay
epriestley edited edge metadata.
This revision is now accepted and ready to land.Nov 23 2015, 6:31 PM
This revision was automatically updated to reflect the committed changes.