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')),
Comments
Comment #1
ericbellot commentedComment #2
twodSorry 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.
Comment #3
sunShouldn't we name this "HTML attributes" ?
Powered by Dreditor.
Comment #4
sunThanks 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.