NEWS WRITER and HTML AREA custom code
Posted: Fri Aug 13, 2010 5:25 pm
hi. in case anyone would be interested in custom code for html editor toolbars i figured out something and thought i'd share:
when building news writer page set EditorMode to 'small' in properties.
after you publish news writer open wysiwyg folder and open wysiwyg-settings.
also open wysiwyg.js
find this in wysiwyg-settings:
var small = new WYSIWYG.Settings();
small.Width = "300px";
small.Height = "100px";
small.DefaultStyle = "font-family: Arial; font-size: 12px; background-color: #FFFFFF";
small.Toolbar[0] = new Array("font", "fontsize", "bold", "italic", "underline", "createlink", "insertimage", "forecolor", "backcolor", "justifyfull", "justifyleft", "justifycenter", "justifyright"); // small setup for toolbar 1
small.Toolbar[1] = ""; // disable toolbar 2
small.StatusBarEnabled = false;
see the red codes? got them from wysiwyg.js. they are there from line 99 on. copy/paste whichever you would like to have appeared in the editor toolbar for use. it's up to you. save it-upload it to server.
i hope i could help.
when building news writer page set EditorMode to 'small' in properties.
after you publish news writer open wysiwyg folder and open wysiwyg-settings.
also open wysiwyg.js
find this in wysiwyg-settings:
var small = new WYSIWYG.Settings();
small.Width = "300px";
small.Height = "100px";
small.DefaultStyle = "font-family: Arial; font-size: 12px; background-color: #FFFFFF";
small.Toolbar[0] = new Array("font", "fontsize", "bold", "italic", "underline", "createlink", "insertimage", "forecolor", "backcolor", "justifyfull", "justifyleft", "justifycenter", "justifyright"); // small setup for toolbar 1
small.Toolbar[1] = ""; // disable toolbar 2
small.StatusBarEnabled = false;
see the red codes? got them from wysiwyg.js. they are there from line 99 on. copy/paste whichever you would like to have appeared in the editor toolbar for use. it's up to you. save it-upload it to server.
i hope i could help.