Last modified: 2011-03-13 18:05:32 UTC
I think a temporary solution to provide a user with the means to go back to editing using a form after (s)he clicked preview would be to create a patch to MediaWiki preview page to contain a button "edit with form X" that will post contents of the edit box (full wiki-text created by SemanticForms) to http://www.example.com/Special:AddPage/Form:X/PageName
This will require two things:
1. a patch to MediaWiki that adds a button.
2. addition for SemanticForms to accept preload not only from the page defined from "preload" url attribute, but from the POST value as well.
I have no idea what this bug is about...
(In reply to comment #1)
> I have no idea what this bug is about...
I would imagine, like the summary says, and as the product/component imply, it's a proposed workaround to address some bug or undesirable behaviour caused by an interaction between an extension and page previews.
(In reply to comment #2)
> (In reply to comment #1)
> > I have no idea what this bug is about...
> I would imagine, like the summary says, and as the product/component imply,
> it's a proposed workaround to address some bug or undesirable behaviour caused
> by an interaction between an extension and page previews.
Yes, but what bug?
It's a proposed addition to the Semantic Forms extension (http://www.mediawiki.org/wiki/Extension:Semantic_Forms). The "patch" that Sergey is talking about would be a piece of code that every admin who wanted the feature would be required to add manually to MediaWiki; it's not something that we would want to actually include in MediaWiki.
Or this could be made into the hook so editing and previewing pages would be more modifiable - then Semantic Forms extension could use this hook instead of using a patch.
Are there any plans for hooks for editing an previewing pages?
Changing this year-old code suggestion to "WONTFIX" - the code has changed substantially since then, and there's now a plan in place to get the form-in-preview-page feature working in the right way.