Help - Search - Members - Calendar
Full Version: Editing the tmpl files
Movable Type Community Forum > Additional Resources > Tips and Tricks
suite102
In the Edit Entry tmpl file, there are spots that build the Bold, Italic, Link buttons. I would like a button that inserts a 'break.'

Yes, I know I could just set the formatting to "Convert Line Breaks" but for reasons I don't want to get into, I can't.

So, I know there's a call to a javascript function called formatStr. I made a copy of it and called it formatSpt.

Then, I copied the line in the body that adds bold text and told it to reference formatSpt (though, in all honesty, I don't think I need it: I don't want to add tags around a selected string, I simply want to add HTML to where the cursor is.

So... can someone help me out with this seriously arcane request?

Thanks,

James Ellis
maddy
Check out this thread. smile.gif
suite102
Thanks! That looks like exactly what I need.

2 points for you.

James
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.