FCKEditor replace all vLargeTextField in admin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
window.onload = function () {
	var allPageTags = document.getElementsByTagName("textarea");
	var editors = new Array();
	for (i = 0; i < allPageTags.length; i++) {
		if (allPageTags[i].className == "vLargeTextField") {
			var oFCKeditor = new FCKeditor(allPageTags[i].id);
			oFCKeditor.Config["CustomConfigurationsPath"] = "/static/fckeditor/custom/myconfig.js";
			oFCKeditor.BasePath = "/static/fckeditor/";
			oFCKeditor.Height = "400";
			oFCKeditor.ReplaceTextarea();
			editors.push(oFCKeditor);
		}
	}
};

More like this

  1. Template tags to integrate with modconcat by matthanger 2 years, 6 months ago
  2. A dict template tag by Batiste 3 years, 9 months ago
  3. Add special field lookups to the Admin list_filter display by whiteinge 4 years ago
  4. Unobtrusvie Foldable Admin Interface by whiteinge 4 years ago
  5. Versioned media files using template tags by matterk 3 years, 10 months ago

Comments

(Forgotten your password?)