incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx" <dirk.frederi...@gmail.com>
Subject Re: [jira] Commented: (JSPWIKI-209) section edit
Date Thu, 10 Apr 2008 18:16:15 GMT
Cool idea !

That would problably lead to a kind of INLINE editor.   When clicking
the [EDIT] link, the section would be replaced inline by the edit
textarea.

>> This would require a new ajax call to the wiki-engine with an EDIT
request + section-#.
>> The wiki-engine would only return the wikimarkup of that section,
and freeze it for editing.

 Wiki.jsonrpc('edit.editSection', [page-name, section-number],
function(result){
      // insert inline wiki-editor with resizable textarea, and other stuff
      // wait for the save/cancel button  (still need a preview ?)
  });


When done, the section would be saved and the translate markup would
replace the edited section. But ...  the changed markup could insert
new sections or remove previous sections. So, we'd probably would need
to replace the whole page with the new content.


This approach would allow for multi-user editing of the page by multiple users
>> When a section is already in-use for editing by someone else, the
EDIT request would be failed or give a warning.



dirk

On Thu, Apr 10, 2008 at 5:32 PM, Jürgen Weber (JIRA) <jira@apache.org> wrote:
>
>     [ https://issues.apache.org/jira/browse/JSPWIKI-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587675#action_12587675
]
>
>  Jürgen Weber commented on JSPWIKI-209:
>  --------------------------------------
>
>  I tried out section editing in v2.7.0-svn-9. Works great. Congrats.
>
>  Thought it would be nice if you could see the not edited sections in rendered form above
and below the edit field, or even better if you could see the rendered page and the edit field
were put below the corresponding section in the rendered page.
>
>  Maybe it would be simpler, if the edit field came up in a popup that would float above
the rendered page, so you could compare with the original.
>
>
>
>  > section edit
>  > ------------
>  >
>  >                 Key: JSPWIKI-209
>  >                 URL: https://issues.apache.org/jira/browse/JSPWIKI-209
>  >             Project: JSPWiki
>  >          Issue Type: New Feature
>  >          Components: Core & storage, Default template, Editors
>  >    Affects Versions: 2.6.1
>  >            Reporter: Jürgen Weber
>  >            Assignee: Dirk Frederickx
>  >
>  > JSPWiki should support section editing like Mediawiki.
>  > "Let's make it possible to edit one single section of a page instead of the hole
page. This should be an alternative way of editing pages in addition to the current one. "
>  > From:
>  > http://www.jspwiki.org/wiki/IdeaEditOnlyOneSectionOfAPage
>
>  --
>  This message is automatically generated by JIRA.
>  -
>  You can reply to this email to add a comment to the issue online.
>
>

Mime
View raw message