Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is strong & bold and emphasizes and italics. It's because we wanted to force users to see "b" for strong and "i" for italics, whereas Kevin had actually designed them to be separate.
Potential solutions:
- when only strong/em are allowed, show b/i
- when both strong/b and em/i are allowed, show s/b/em/i
- never show the b/i buttons
Actually, superscript and subscript buttons are also showing, which implies that it's not "getting" that it should be using Filtered HTML. This sounds like a security problem.
In latest Spark (as of right now, in git):
- at node/1/edit (back-end editing through Aloha): single b/i buttons
- at node/1 (front-end editing through Aloha): double b/i buttons
So, you're right, there has been a regression, and the allowed tags are no longer being picked up correctly.
I thought this issue was about the fact that you get double b/i buttons when you switch to "Full HTML" over at node/1/edit. I'll look into this later today.
Comments
Comment #1
Wim LeersThis is strong & bold and emphasizes and italics. It's because we wanted to force users to see "b" for strong and "i" for italics, whereas Kevin had actually designed them to be separate.
Potential solutions:
- when only strong/em are allowed, show b/i
- when both strong/b and em/i are allowed, show s/b/em/i
- never show the b/i buttons
Comment #2
MustangGB CreditAttribution: MustangGB commentedI think "never show the b/i buttons" will be fine as it encourages best use of s/em.
Should probably add a note of this somewhere though, README.txt perhaps.
Comment #3
webchickThis is a good question, but the OP is a slightly different issue.
Spark's filtered HTML is set to:
So I don't understand why it thinks
<b>
and<i>
buttons should be shown. They are not shown on the backend version of Aloha.Comment #4
webchickMoving back to active for #3, and spun off #1 and #2 to #1800670: How to deal with various combinations of <b>/<strong> & <i>/<em>.
Comment #5
webchickActually, superscript and subscript buttons are also showing, which implies that it's not "getting" that it should be using Filtered HTML. This sounds like a security problem.
Comment #6
Wim LeersIn latest Spark (as of right now, in git):
- at node/1/edit (back-end editing through Aloha): single b/i buttons
- at node/1 (front-end editing through Aloha): double b/i buttons
So, you're right, there has been a regression, and the allowed tags are no longer being picked up correctly.
I thought this issue was about the fact that you get double b/i buttons when you switch to "Full HTML" over at node/1/edit. I'll look into this later today.
Comment #7
Wim LeersIt's a one-line fix.
But I can't push it:
Weird things are going on. I'll try to get this to work.
Comment #8
Wim LeersAt last.
http://drupalcode.org/project/edit.git/commit/e8b3867