Page MenuHomePhabricator

Problem in edit with form
Closed, ResolvedPublic

Description

Author: nahidshahin

Description:
Hi Experts,
I don't know whether it is bug or I have missed something.
I was editing using 'Edit with form' but when my hook ('EditFilter' hook) reports some error in edit process it come back in 'Edit' mode not in 'Edit with form' mode.
Does any one have any idea about this problem?
Thanks
-Nahid


Version: unspecified
Severity: enhancement

Details

Reference
bz18621

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:33 PM
bzimport set Reference to bz18621.

Hi, what is this hook, and what's the error it reports?

nahidshahin wrote:

Hi,
Thanks for you attention, I have used this hook for my custom extension, here goes the reference link:
http://www.mediawiki.org/wiki/Manual:Hooks/EditFilter

If you set some $error, the page will not save and stay in edit mode. But as I told you before I want to stay 'Edit with form' mode because I start with this mode not in 'Edit' mode.

Thanks
-Nahid

(In reply to comment #1)

Hi, what is this hook, and what's the error it reports?

nahidshahin wrote:

Take another simple scenario, there is a button 'Show preview' in edit mode.
If I press 'Show preview' in 'Edit with form' mode it gives us preview but returns to 'Edit' mode.
But I want to stay 'Edit with form' mode as I started with it.

Is there any solution of it?
-Nahid

(In reply to comment #1)

Hi, what is this hook, and what's the error it reports?

I see - no, there's no solution for it, although a separate bug report here already requests that feature.

This capability now exists in Semantic Forms, as of version 1.8.3; you just need to add the following to the top of the form definition:

<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>

nahidshahin wrote:

Its working !!!
Thanks Yaron...