updated rich edit to 1.45

fixed cache privileges problem
added new buttons to rich edit
rich edit now defaults to allow any HTML tags
This commit is contained in:
JT Smith 2005-08-05 22:06:14 +00:00
parent 677558fe71
commit 8a5c997441
9 changed files with 56 additions and 17 deletions

View file

@ -1,4 +1,10 @@
6.7.0
- Upgraded the rich editor to 1.45.
- Rich edit now has three new buttons: paste from word, paste as plain text,
and fullscreen.
- Rich editor defaultly does not validate HTML tags and therefore will allow
the slop that it was stripping out before. While less strict, this is less
confusing to end users.
- Being in the admins group automatically results in a UI level capable of
seeing everything.
- fix [ 1251390 ] Security tab doesn't appear for member of Admins

View file

@ -31,9 +31,20 @@ makeSyndicatedContentChanges();
removeOldThemeSystem();
addSectionsToSurveys();
increaseProxyUrlLength();
upgradeRichEdit();
WebGUI::Session::close();
#-------------------------------------------------
sub upgradeRichEdit {
print "\tUpgrade rich editor to version 1.45.\n" unless ($quiet);
WebGUI::SQL->write("update RichEdit set extendedValidElements='*[*]' where assetId='PBrichedit000000000001'");
my $prepend = 'a[name|href|target|title],strong/b[class],em\/i[class],strike[class],u[class],p[dir|class|align],ol,ul,li,br,img[class|src|border=0|alt|title|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[dir|class|colspan|rowspan|width|height|align|valign],div[dir|class|align],span[class|align],pre[class|align],address[class|align],h1[dir|class|align],h2[dir|class|align],h3[dir|class|align],h4[dir|class|align],h5[dir|class|align],h6[dir|class|align],hr';
WebGUI::SQL->write("update RichEdit set extendedValidElements=concat(".quote($prepend).",',',extendedValidElements) where assetId<>'PBrichedit000000000001'");
WebGUI::SQL->write("alter table RichEdit change extendedValidElements validElements mediumtext");
}
#-------------------------------------------------
sub increaseProxyUrlLength {
print "\tMaking HTTP Proxy URLs accept lengths of up to 2048 characters.\n" unless ($quiet);