Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#1564 closed defect (bug) (fixed)

More and NextPage buttons missing in WYSI editor (patch)

Reported by: ringmaster's profile ringmaster Owned by: markjaquith's profile 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)

more_nextpage.zip (6.1 KB) - added by ringmaster 19 years ago.
Described patch and TinyMCE plugin
editor_plugin_src.js (7.4 KB) - added by JasonV 19 years ago.
Modified editor_plugin_src.js, 'name' changed to 'class'

Download all attachments as: .zip

Change History (9)

@ringmaster
19 years ago

Described patch and TinyMCE plugin

#1 @markjaquith
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

#2 @matt
19 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

#3 @JasonV
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 @JasonV
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...

#5 @JasonV
19 years ago

  • Keywords bg|needs-patch added; bg|has-patch bg|commit removed

@JasonV
19 years ago

Modified editor_plugin_src.js, 'name' changed to 'class'

#6 @matt
19 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

Already fixed.

#7 @(none)
17 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.