The standard button ' Attribs ' of TinyMCE misses in Wysiwyg (it's part of htmlxtras plugin).

It is an important button. With him, it is possible to change some attributes of tags as the style, id, class, etc.

To be able to show this button, modify simply this line in wysiwyg/editors/tinymce.inc :

Actual line :
'buttons' => array('cite' => t('Citation'), 'del' => t('Deleted'), 'abbr' => t('Abbreviation'), 'acronym' => t('Acronym'), 'ins' => t('Inserted')),

Proposed line :
'buttons' => array('cite' => t('Citation'), 'del' => t('Deleted'), 'abbr' => t('Abbreviation'), 'acronym' => t('Acronym'), 'ins' => t('Inserted'), 'attribs' => t('Attributes')),

CommentFileSizeAuthor
#2 wysiwyg-tinymce-attribs.patch994 bytestwod

Comments

ericbellot’s picture

Category: task » support
twod’s picture

Category: support » bug
Status: Active » Needs review
StatusFileSize
new994 bytes

Sorry I completely missed this. Please test the attached patch. It should be possible to apply to both 2.x and 3.x.

Note that since the changes one can do with this button are related to the style attribute, Drupal's HTML filter must be disabled for them to show in the viewed node. The filter always removes the style attribute. If you don't want your users to be able to use all tags, try the Wysiwyg filters module as an alternative to the filter in Core.

sun’s picture

+++ editors/tinymce.inc	15 Jan 2010 15:53:33 -0000
@@ -552,7 +552,7 @@ function wysiwyg_tinymce_plugins($editor
+      'buttons' => array('cite' => t('Citation'), 'del' => t('Deleted'), 'abbr' => t('Abbreviation'), 'acronym' => t('Acronym'), 'ins' => t('Inserted'), 'attribs' => t('Attributes')),

Shouldn't we name this "HTML attributes" ?

Powered by Dreditor.

sun’s picture

Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.