#1564 closed defect (bug) (fixed)
More and NextPage buttons missing in WYSI editor (patch)
Reported by: | ringmaster | Owned by: | markjaquith |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.6 |
Component: | Administration | Keywords: | editor more nextpage bg|needs-patch |
Focuses: | Cc: |
Description
In the new WYSI editor, there is no button for the more or nextpage comment tags that are used to separate pages within a post.
The attached files are a plugin for TinyMCE that adds these buttons to the toolbar. The comments are displayed graphically in the editor, but are stored as html comments upon output or when editing the html directly. The user can move the More and Nextpage placements by simply dragging them.
See this image for an example of the display.
The "wordpress" directory in the archive goes into the tinymce/plugins directory. The single diff will patch the plugin features into the admin-header.php.
Localization of this TinyMCE plugin is incomplete.
Attachments (2)
Change History (9)
#1
@
19 years ago
- Keywords bg|has-patch bg|commit added
- Milestone set to 1.6
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
#3
@
19 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
"The comments are displayed graphically in the editor, but are stored as html comments upon output or when editing the html directly."
This does not seem to function correctly, because the image tags for the graphic display remain in the HTML and are NOT replaced by the WP HTML comments.
#4
@
19 years ago
Ok, this seems to have fixed it: lines 163 and 173 in wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js need to be changed from checking attribsname? to attribsclass?... or at least that did it for me. I'll try to put a patch together, but it might be quicker of somebody else did it, cause I haven't made a patch in a LONG time...
Described patch and TinyMCE plugin