dev

EmbeddedSectionEditor is a script that changes the behavior of the normal section edit link to display an embedded editor, allowing users to quickly edit, preview, and save changes to a section without loading entirely new pages or leaving the current page. Clicking the section edit link will display the embedded editor along with buttons to submit, preview, and cancel changes; an edit summary field; a button to mark the edit as minor; and a button to open the normal section editing page.

Installation

Features

Embedded editor

The embedded editor is the normal editor with a shorter height and without the section's heading.

In certain cases, such as those involving HTML comments, the wrong section may be in the embedded editor. If this happens, use the normal section editing page instead, and please use this script's Talk page or notify this script's author(s) so that the editable section detection can be improved.

Submit button

The Submit button submits changes made in the embedded editor. Changes will be displayed immediately after saving.

There are no warnings for edit conflicts. Please be careful when using the section editor on a popular page or for a long period of time.

After saving, the section's display will look identical to the section preview prior to saving, and the display of other sections will not change. As such, immediately after saving, any elements that depend on the content of other sections on the page, such as references, may display differently from how the page actually looks. It is not necessary to refresh the page to fix the display, as nothing will change. However, it is still recommended to refresh the page anyway to verify that the output is correct.

Preview button

The Preview button shows a preview with an overlay. Certain features, like audio buttons, may not work.

Close button

The close button is denoted with an X and closes the embedded editor. This discards all changes.

Minor edit button

The minor edit button is denoted with a lowercase m and will mark the edit as minor upon submitting changes.

Normal section edit

The normal section editing page can be accessed with the button next to the close button. This button behaves like a link and can therefore be used to open the section editor page in a new window instead of the current window if desired.

Using this button will not transfer existing changes in the open editor to the new page.

Edit summary field

The edit summary field's contents will be prepended with the section name (/* Name */ ) upon saving, like a normal section edit.

The section name cannot be edited from this summary field. If this is desired, then the normal section editing page should be accessed.

Additional notes

Null edits cannot be made.

Two section editors cannot be open at the same time.

Text above can be found here (edit)