Issue 872: Add break tags in event title field
Status:  Done
Owner: ----
Closed:  Apr 2011
Reported by tony...@gmail.com, Mar 28, 2011
I've searched high and low and haven't quite found the answer to this.  My client is a nightclub and currently their hand-coded calendar (full calendar view) allows them to have more than one line in a calendar cell - for instance Genre (linebreak) Band (linebreak) Cover charge (linebreak) etc.

I've played around with the htmlescape area in fullcalendar.js but haven't been able to solve it (nor find answer by Googling).

Thanks!
Tonya
Apr 2, 2011
Project Member #1 adamrs...@gmail.com
i'm almost certain that if you put a newline character ("\n") in the event title, that is where an html <br/> will be inserted.
Status: Done
Apr 2, 2011
#2 tony...@gmail.com
Unfortunately I've tried -- it renders as text.  I could really use the help with this -- no other plugin seems to do this either.  Thanks!
Apr 2, 2011
Project Member #3 adamrs...@gmail.com
i just tested this out (in 1.5 at least) and i know for a fact it works. try something like this:

	$(document).ready(function() {
	
		var date = new Date();
		var d = date.getDate();
		var m = date.getMonth();
		var y = date.getFullYear();
		
		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			editable: true,
			events: [
				{
					title: "All Day\nEvent",
					start: new Date(y, m, 1)
				}
			]
		});
		
	});

the problem might be that you have an older version
Apr 2, 2011
#4 tony...@gmail.com
That is helpful although I'm getting the valid header error when trying to install after deleting my prior version.  I did what most sites say, which is uploading only the folder within the parent folder, but doesn't work.

Assuming I can get the plugin going, what file should get the code above and where (plugin funtions file, theme functions file?

Ultimately, I'd like to add some fields using a different plugin so that my clients can just fill in fields that are already styled via css.  Don't bother with this though.  I already appreciate your help!