Author: tchemit Date: 2008-05-18 21:06:06 +0000 (Sun, 18 May 2008) New Revision: 52 Modified: trunk/lutinrss/src/main/webapp/fckTest.html Log: fckeditor test Modified: trunk/lutinrss/src/main/webapp/fckTest.html =================================================================== --- trunk/lutinrss/src/main/webapp/fckTest.html 2008-05-18 18:54:43 UTC (rev 51) +++ trunk/lutinrss/src/main/webapp/fckTest.html 2008-05-18 21:06:06 UTC (rev 52) @@ -11,28 +11,32 @@ <link href="feed.css" rel="stylesheet" type="text/css" /> <!--script src="/lutinrss-2.1/RSSServlet"></script--> <script type="text/javascript" src="/fckeditor/fckeditor.js"></script> - </head> <body> <h1>Test plugin FCKEditor RSS (*)</h1> - - <script type="text/javascript"> - <!-- - var oFCKeditor = new FCKeditor( 'rssTest' ) ; - oFCKeditor.Height = '500px' ; - oFCKeditor.Width = '545px' ; - //oFCKeditor.BasePath = "/fckeditor/"; - var content = "<div contenteditable='false' class=\"rssinclude\" name=\"rssinclude\" feedName=\"http://www.lemondeinformatique.fr/flux-rss/open-source/rss.xml\" forcereload=\"true\" style=\"background-color: rgb(255, 255, 0);\" nbItem=\"5\" feedRepr=\"n-n\">RSS http://www.lemondeinformatique.fr/flux-rss/open-source/rss.xml (items:5)</div>"; - content += "<s"+"cript src=\"/lutinrss-2.1/RSSServlet\"></scri"+"pt><p>Content ...</p><hr/>"; - //content += "<p>Content :2)</p>"; - oFCKeditor.Value = content; - oFCKeditor.Create() ; - --> - </script> - + <form name="EditPostView" action="#" method="GET"> + <script type="text/javascript"> + <!-- + var oFCKeditor = new FCKeditor( 'rssTest' ) ; + oFCKeditor.Height = '500px' ; + oFCKeditor.Width = '545px' ; + var content = "<div contenteditable='false' class=\"rssinclude\" name=\"rssinclude\" feedName=\"http://www.lemondeinformatique.fr/flux-rss/open-source/rss.xml\" style=\"background-color: rgb(255, 255, 0);\" nbItem=\"1\" feedRepr=\"n-n\">RSS http://www.lemondeinformatique.fr/flux-rss/open-source/rss.xml (items:1)</div><br/>"; + content+="<div contenteditable='false' name=\"rssinclude\" class=\"rssinclude\" feedName=\"http://www.lemonde.fr/rss/sequence/0,2-3208,1-0,0.xml\" nbItem=\"2\" feedRepr=\"indat-natd\" style=\"background-color: rgb(255, 255, 0);\">RSS http://www.lemonde.fr/rss/sequence/0,2-3208,1-0,0.xml (items:2)</div><br/>"; + content+="<div contenteditable='false' name=\"rssinclude\" class=\"rssinclude\" feedName=\"http://blog.developpez.com/xmlsrv/rss2.php?blog=42\" nbItem=\"3\" feedRepr=\"indat-natd\" style=\"background-color: rgb(255, 255, 0);\">RSS http://blog.developpez.com/xmlsrv/rss2.php?blog=42 (items:3)</div><br/>"; + content+="<div contenteditable='false' name=\"rssinclude\" class=\"rssinclude\" feedName=\"http://formats-ouverts.org/rss.php\" nbItem=\"4\" feedRepr=\"indat-natd\" style=\"background-color: rgb(255, 255, 0);\">RSS http://formats-ouverts.org/rss.php (items:4)</div><br/>"; + content+="<div contenteditable='false' name=\"rssinclude\" class=\"rssinclude\" feedName=\"http://www.h2database.com/html/newsfeed-rss.xml\" nbItem=\"5\" feedRepr=\"indat-natd\" style=\"background-color: rgb(255, 255, 0);\">RSS http://www.h2database.com/html/newsfeed-rss.xml (items:5)</div><br/>"; + content+="<div contenteditable='false' name=\"rssinclude\" class=\"rssinclude\" feedName=\"http://www.opensi.org/news.rss\" nbItem=\"6\" feedRepr=\"indat-natd\" style=\"background-color: rgb(255, 255, 0);\">RSS http://www.opensi.org/news.rss (items:6)</div>"; + content += "<s"+"cript src=\"/lutinrss-2.1/RSSServlet\"></scri"+"pt><hr/><p>content...</p>"; + oFCKeditor.Value = content; + oFCKeditor.Create() ; + --> + </script> + <hr/> + <input type="submit" value="envoyer"> + </form> <p>(*) required a FCKEditor 2.6 available on / apache path (means /fckeditor points to fckeditor root directory)</p> <p>with rssinclude plugin configured like this : - <pre> + <pre> // to authorize user to add a new feed FCKConfig.RssCanAddFeed = false; @@ -47,7 +51,7 @@ // url to obtain known feeds as a list of html options FCKConfig.RssKnownFeedsURL = '/lutinrss-2.1/feeds.txt'; - </pre> + </pre> </p>