Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a rich text editor field and want to add the year to the line. I've tried using a macro, but I can't get the macro to be inline.
So right now here's what I have in my view
@Html.Raw(Model.Content.Replace("%YEAR%", DateTime.Now.Year.ToString()))
and here's what I have in the editor: © 2003-%YEAR%
This works, but I was wondering if there was a better way to do this.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Adding DateTime.Now to rich text editor
I have a rich text editor field and want to add the year to the line. I've tried using a macro, but I can't get the macro to be inline.
So right now here's what I have in my view
and here's what I have in the editor: © 2003-%YEAR%
This works, but I was wondering if there was a better way to do this.
is working on a reply...