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. Generic CSV Export by zbyte64 5 years, 10 months ago
  2. Unobtrusvie Foldable Admin Interface by whiteinge 6 years, 3 months ago
  3. Add special field lookups to the Admin list_filter display by whiteinge 6 years, 2 months ago
  4. Template tags to integrate with modconcat by matthanger 4 years, 9 months ago
  5. jsonify template filter by skam 7 years ago

Comments

(Forgotten your password?)