• Inline styles in the editor window when making an event seem to be getting erased.

    These examples are the HTML around some of the text:

    <span style=”color: #493c8a; font-size: 18pt;”>Vision Boarding Workshop</span></p>
    <p style=”text-align: center;”>Saturday, January 28th</p>

    Upon saving the calendar item, they are changed to:

    <span>Vision Boarding Workshop</span></p>
    <p>Saturday, January 28th</p>

    Effectively stripping the inline styles.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Yes. In general, style attributes will be stripped out. I strongly suggest using external styles and classes to customize your text. The My Calendar stylesheet is editable.

    Thread Starter spraker

    (@spraker)

    That is very difficult for end-users that don’t know how to add in style classes.

    They have the easy-to-use TinyMCE editor to change font sizes, colors, and more.

    Is there any anticipated plan to allow for this in any updated versions of the calendar? Would suspect that it would affect many.

    Plugin Author Joe Dolson

    (@joedolson)

    No. That’s not planned. That doesn’t mean it won’t ever happen, but it’s definitely not on the roadmap right now.

    Have worked out much with the style sheet. However, as html is stripped out of an event description, how can we style/highlight a limited text string within the description via the style sheet? Also, how to make a link within an event description via style sheet? (Not wishing to use the structured link fields for various reasons). Knew how to do html now learning CSS. Thank you for all pointers.

    Plugin Author Joe Dolson

    (@joedolson)

    You should be able to use classes and most standard HTML, including links; you don’t want to apply the actual styling from the HTML, but all standard HTML should be accepted, e.g.:

    <a href='yourlink.com/text/' class='linker'>Link Text</a>

    Thank you. Previously could not set links within the description, copied links that worked elsewhere, no typos. Disabled editors in case of interference but no fix. Then another day I CAN set links in an event description. Something may have fixed with the recent batch of WP/theme/plugin updates. Good.

    Yet I still cannot use HTML such as ‘p style’ or ‘span style’ to size/color text strings within the description. I can only use ‘b’, ’em’, and ‘u’. Is this normal behavior for this plugin, is there another technique to use (example?), or do I have a conflict somewhere?

    • This reply was modified 9 years, 4 months ago by wilderbee.
    Plugin Author Joe Dolson

    (@joedolson)

    First, you should never use underline except on links, as it creates significant user confusion. Otherwise, strong, b, em, and i are all totally reasonable choices. For anything else, you should use classes and customize them via a stylesheet.

    So the style attribute gets stripped out but the span tag remains. Will this be the case in future updates? I would like to use that remaining span tag as part of a selector in an external styelsheet.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Inline Styles Being Erased’ is closed to new replies.