|
From: creedon <icr...@us...> - 2005-11-26 19:23:44
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/html/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7467 Modified Files: get Log Message: removed wrap attribute from textarea tag, depreciated Index: get =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/html/editor/get,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** get 26 Mar 2005 19:43:11 -0000 1.1.1.1 --- get 26 Nov 2005 19:23:35 -0000 1.2 *************** *** 1,3 **** FrontierVcsFile:1:scpt:system.verbs.builtins.html.editor.get ! on get (msgText="", fieldName="body", rows=9, pta=nil, toolabrImgUrl="/mainresponderResources/toolbars/htmlEditor", cols=70, baseUrl="/mainresponderResources/toolbars/mozillaEditor/", formName="editPostForm", adrLanguageTable=nil) { ÇAdd the HTML Editor buttons and scripts. Ç02/14/00; 9:13:54 AM by PBS ÇChanges: Ç8/5/03; 5:02:19 PM by JES ÇNew optional parameter, baseUrl, used for supporting the Mozilla rich text editor. ÇNew optional parameter, formName, used for supporting the Mozilla rich text editor. Ç1/26/02; 2:40:38 AM by JES ÇAdded optional parameter, cols -- default is 70. Specifies the width of the editing box. Ç12/05/01; 11:11:47 AM by JES ÇRespect the rows parameter when returning the WYSIWYG editor. Ç08/31/01; 6:44:23 PM by JES ÇFactored code that finds the editor name to html.editor.getEditingTool. ÇReturn a <textarea>-based editor if the given editor is not defined. Ç08/31/01; 2:17:42 AM by JES ÇNew optional parameter: toolabrImgUrl, specifies the URL of an image to use for the WYSIWYG toolbar. Ç01/04/01; 12:43:36 AM by JES ÇAdapted from mainResponder.discuss.getHtmlEditor Ç10/03/00; 10:14:26 PM by JES ÇNo longer necessary to put JavaScript in head portion of page. Ç10/03/00; 2:08:12 PM by PBS ÇSupport choice of editors -- WYSIWYG, HTML Tags, None. Ç10/02/00; 6:03:52 PM by JES ÇReturn the WYSIWYG HTML editor instead of the older DHTML editor. Use the editor with MSIE4 as well as MSIE5 Ç4/10/00; 6:26:41 PM by JES ÇLocalized -- gets the editor itself using mainResponder.getString if pta == nil { pta = html.getPageTableAddress ()}; Çworkspace.pt = pta^; edit (@workspace.pt) //debugging local (editTool = html.editor.getEditingTool (pta)); local (adrEditor = @html.editor.[editTool]); //default to the built-in English if adrLanguageTable != nil { if defined (adrLanguageTable^.data.[editTool]) { adrEditor = @adrLanguageTable^.data.[editTool]}}; if not defined (adrEditor^) { //return a <textarea> return ("<textarea name=\"" + fieldName + "\" rows=\"" + rows + "\" cols=\"" + cols + "\" wrap=\"soft\">" + msgText + "</textarea>")}; pta^.adrEditingTool = adrEditor; if string.lower (nameOf (adrEditor^)) endswith "mozilla" { msgText = string.replaceAll (msgText, "\r\n", "\r"); if msgText contains "\r\r" { msgText = string.replaceAll (msgText, "\r\r", "<br><br>")}}; local (s = string (adrEditor^)); s = string.replace (s, "[[messageText]]", msgText); s = string.replaceAll (s, "[[fieldName]]", fieldName); s = string.replace (s, "[[rows]]", rows); s = string.replace (s, "[[cols]]", cols); s = string.replace (s, "[[heightPixels]]", ((rows * 17) + 50)); s = string.replace (s, "[[toolbarImgUrl]]", toolabrImgUrl); s = string.replaceAll (s, "[[baseUrl]]", baseUrl, false); s = string.replaceAll (s, "[[formName]]", formName, false); return (s)}; Çbundle //testing Çop.newOutlineObject (html.editor.get ("Initial HTML text...", "itemtext", 9, @workspace.pt, radio.images.systemImageUrl ("toolbars/htmlEditor")), @workspace.htmlEditor) Çedit (@workspace.htmlEditor) \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:system.verbs.builtins.html.editor.get ! on get (msgText="", fieldName="body", rows=9, pta=nil, toolabrImgUrl="/mainresponderResources/toolbars/htmlEditor", cols=70, baseUrl="/mainresponderResources/toolbars/mozillaEditor/", formName="editPostForm", adrLanguageTable=nil) { ÇChanges Ç11/24/05; 6:33:45 PM by TAC Çremoved wrap attribute from textarea tag, depreciated Ç8/5/03; 5:02:19 PM by JES ÇNew optional parameter, baseUrl, used for supporting the Mozilla rich text editor. ÇNew optional parameter, formName, used for supporting the Mozilla rich text editor. Ç1/26/02; 2:40:38 AM by JES ÇAdded optional parameter, cols -- default is 70. Specifies the width of the editing box. Ç2001 Ç12/05/01; 11:11:47 AM by JES ÇRespect the rows parameter when returning the WYSIWYG editor. Ç08/31/01; 6:44:23 PM by JES ÇFactored code that finds the editor name to html.editor.getEditingTool. ÇReturn a <textarea>-based editor if the given editor is not defined. Ç08/31/01; 2:17:42 AM by JES ÇNew optional parameter: toolabrImgUrl, specifies the URL of an image to use for the WYSIWYG toolbar. Ç01/04/01; 12:43:36 AM by JES ÇAdapted from mainResponder.discuss.getHtmlEditor Ç2000 Ç10/03/00; 10:14:26 PM by JES ÇNo longer necessary to put JavaScript in head portion of page. Ç10/03/00; 2:08:12 PM by PBS ÇSupport choice of editors -- WYSIWYG, HTML Tags, None. Ç10/02/00; 6:03:52 PM by JES ÇReturn the WYSIWYG HTML editor instead of the older DHTML editor. Use the editor with MSIE4 as well as MSIE5 Ç4/10/00; 6:26:41 PM by JES ÇLocalized -- gets the editor itself using mainResponder.getString Ç02/14/00; 9:13:54 AM by PBS ÇAdd the HTML Editor buttons and scripts. if pta == nil { pta = html.getPageTableAddress ()}; Çworkspace.pt = pta^; edit (@workspace.pt) //debugging local (editTool = html.editor.getEditingTool (pta)); local (adrEditor = @html.editor.[editTool]); //default to the built-in English if adrLanguageTable != nil { if defined (adrLanguageTable^.data.[editTool]) { adrEditor = @adrLanguageTable^.data.[editTool]}}; if not defined (adrEditor^) { //return a <textarea> return ("<textarea name=\"" + fieldName + "\" rows=\"" + rows + "\" cols=\"" + cols + "\">" + msgText + "</textarea>")}; pta^.adrEditingTool = adrEditor; if string.lower (nameOf (adrEditor^)) endswith "mozilla" { msgText = string.replaceAll (msgText, "\r\n", "\r"); if msgText contains "\r\r" { msgText = string.replaceAll (msgText, "\r\r", "<br><br>")}}; local (s = string (adrEditor^)); s = string.replace (s, "[[messageText]]", msgText); s = string.replaceAll (s, "[[fieldName]]", fieldName); s = string.replace (s, "[[rows]]", rows); s = string.replace (s, "[[cols]]", cols); s = string.replace (s, "[[heightPixels]]", ((rows * 17) + 50)); s = string.replace (s, "[[toolbarImgUrl]]", toolabrImgUrl); s = string.replaceAll (s, "[[baseUrl]]", baseUrl, false); s = string.replaceAll (s, "[[formName]]", formName, false); return (s)}; Çbundle //testing Çop.newOutlineObject (html.editor.get ("Initial HTML text...", "itemtext", 9, @workspace.pt, radio.images.systemImageUrl ("toolbars/htmlEditor")), @workspace.htmlEditor) Çedit (@workspace.htmlEditor) \ No newline at end of file |