The yellow warning box created by <div class="warning"> looks great:

http://drupal.org/project/metatag

This functionality should be added to the Filtered HTML input format so everyone can make use of it.

Comments

fizk’s picture

Issue summary: View changes

grammer.

tvn’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

We are working on cleaning up Drupal.org-related issue queues. Many issues have been open for years with no resolution because there were no volunteers interested in taking on the task or staff time available to complete the work.
We are going through old issues and marking them as Closed (won't fix). If you feel your issue has been closed in error, please do comment on the issue and let us know. If we know something is critical, we may reconsider the closure of a feature request or bug report.
Thank you for your understanding while we work to clean up the Drupal.org queues.

fizk’s picture

Status: Closed (won't fix) » Active

I still think it would be a good feature. Here is how it looks:

https://www.drupal.org/node/640498/revisions/2260874/view

apaderno’s picture

Project: Drupal.org site moderators » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: Other » Code

The input formats are defined in custom code used from Drupal.org.

drumm’s picture

Status: Active » Closed (works as designed)
Related issues: +#2741227: Enable CKEditor for more content types

Filtered HTML does allow this, for example:

This is a test.

Content types which have CKEditor enabled have a template button which adds <div class="note-warning"><p></p></div>
https://git.drupalcode.org/project/bluecheese/blob/23befa80494d2e4847b64...

This is a test.

ressa’s picture

Title: Add class=warning to Filtered HTML » Add class=note-warning to Filtered HTML
Status: Closed (works as designed) » Active

<div class="note-warning"><p></p></div> works well, which is great.

But the class is not available from the style dropdown in the documentation pages. Users who know a work-around copies it from an issue template, other users (me) tries with the wrong class (deprecated) which gets stripped ...

See Quick install Drupal with XAMPP on Windows Discussion.

Also, could supported classes be listed under More information about text formats?

ressa’s picture

Title: Add class=note-warning to Filtered HTML » Add class=warning and note-warning to Filtered HTML

Update title, since both note-warning and warning are supported.

ressa’s picture

Status: Active » Closed (works as designed)

Nevermind, the note-warning class is available. @hansfn kindly made me aware of the options under the "templates" icon, which I completely overlooked until now.