I have html tag in my confluence page
<
div
class
=
"warningMacro"
>This is a div example</
div
>
I wanan convert it to
{div:class=warningMacro}This is a div example{div}
any idea how to do that?
Community moderators have prevented the ability to post new answers.
@Nelson Carranza ,Gabrielle Bautista I have aroung 1000 Pages cant think of putting macro in each Page. I wanna some global thing Like a plugin or Some other things ...
H Pratik,
Here is the documentation an examples
https://confluence.atlassian.com/doc/info-tip-note-and-warning-macros-51872369.html
If you can apply css as this answer explain https://answers.atlassian.com/questions/99055
you can add the following
.warningMacro{ background: #fff; border-color: 1px solid #f6c342; border-top: 1px solid #f6c342; border-right: 1px solid #f6c342; border-bottom: 1px solid #f6c342; border-left: 1px solid #f6c342; color: #333; border-radius: 3px; color: #333; line-height: 20px; margin: 20px 0 0 0; overflow-wrap: break-word; padding-bottom: 20px; padding-left: 60px; padding-right: 40px; padding-top: 20px; position: relative; word-wrap: break-word; word-break: break-word; } .warningMacro:before{ background-color:#f6c342; bottom: 0;content: ''; left: 0; position: absolute; top: 0; width: 40px; } .warningMacro:after{ content: "\f1b3"; font-family: "Atlassian Icons"; font-size: 16px; -webkit-font-smoothing: antialiased; font-style: normal; font-weight: normal; left: 12px; line-height: 1; margin-top: -8px; position: absolute; speak: none; top: 50%; }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about putting it in inside an html macro?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.