Upgraded to FCKeditor 2.5beta
SVN revision: 1968
This commit is contained in:
Binary file not shown.
@@ -7,12 +7,16 @@ FCKConfig.Plugins.Add('elog', null);
|
||||
|
||||
FCKConfig.FirefoxSpellChecker = true ;
|
||||
|
||||
FCKConfig.Plugins.Add('dragresizetable');
|
||||
|
||||
FCKConfig.ProtectedSource.Add( /<script[\s\S]*?<\/script>/gi ) ; // <SCRIPT> tags
|
||||
FCKConfig.ProtectedSource.Add( /<(.*?)javascript\:(.*?)/gi ) ; // javascript: tags
|
||||
FCKConfig.ProtectedSource.Add( /<(.*?)(?:on(blur|c(hange|lick)|dblclick|focus|keypress|(key|mouse)(down|up)|(un)?load|mouse(move|o(ut|ver))|reset|s(elect|ubmit)))=(.*?)(\s*?)(.*?)>/gi ) ; // events
|
||||
|
||||
FCKToolbarItems.RegisterItem('SourceSimple', new FCKToolbarButton( 'Source', window.top.ELOGSource, null, FCK_TOOLBARITEM_ONLYICON, true, true, 1));
|
||||
|
||||
FCKConfig.ToolbarSets["Default"] = [
|
||||
['Source','FitWindow','-','ELOGSubmit','Preview'],
|
||||
['SourceSimple','FitWindow','ShowBlocks','-','ELOGSubmit','Preview'],
|
||||
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
|
||||
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
|
||||
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
|
||||
|
||||
@@ -9576,6 +9576,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
rsprintf("var ELOGInsertDateTime = '%s';\n\n", loc("Insert Date/Time"));
|
||||
rsprintf("var ELOGLinkTextPrompt = '%s';\n\n", loc("Enter name of hyperlink"));
|
||||
rsprintf("var ELOGLinkURLPrompt = '%s';\n\n", loc("Enter URL of hyperlink"));
|
||||
rsprintf("var ELOGSource = '%s';\n\n", loc("Show HTML source code"));
|
||||
rsprintf("function initFCKedit()\n");
|
||||
rsprintf("{\n");
|
||||
rsprintf(" var oFCKeditor = new FCKeditor('Text', '100%%', '500');\n");
|
||||
|
||||
Reference in New Issue
Block a user