[Lutinweb-commits] r51 - trunk/lutinrss/src/main/webapp
Author: tchemit Date: 2008-05-18 18:54:43 +0000 (Sun, 18 May 2008) New Revision: 51 Added: trunk/lutinrss/src/main/webapp/fckTest.html trunk/lutinrss/src/main/webapp/feeds.txt Log: fckeditor test Added: trunk/lutinrss/src/main/webapp/fckTest.html =================================================================== --- trunk/lutinrss/src/main/webapp/fckTest.html (rev 0) +++ trunk/lutinrss/src/main/webapp/fckTest.html 2008-05-18 18:54:43 UTC (rev 51) @@ -0,0 +1,55 @@ +<!-- + Document : test + Created on : 18 avr. 2008, 11:46:56 + Author : poussin +--> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> + <head> + <title>Page de test plugin FCKEditor rss</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <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> + + <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> + // to authorize user to add a new feed + FCKConfig.RssCanAddFeed = false; + + // to authorize user to edit a known feed + FCKConfig.RssCanEditFeed = false; + + // url to render a feed + FCKConfig.RssRenderURL = '/lutinrss-2.1/RSSServlet&feedName='; + + // url to obtain rssinclude script + FCKConfig.RssScriptURL = '/lutinrss-2.1/RSSServlet'; + + // url to obtain known feeds as a list of html options + FCKConfig.RssKnownFeedsURL = '/lutinrss-2.1/feeds.txt'; + </pre> + </p> + + + </body> +</html> Added: trunk/lutinrss/src/main/webapp/feeds.txt =================================================================== --- trunk/lutinrss/src/main/webapp/feeds.txt (rev 0) +++ trunk/lutinrss/src/main/webapp/feeds.txt 2008-05-18 18:54:43 UTC (rev 51) @@ -0,0 +1,7 @@ +<option id="http://www.lemondeinformatique.fr/flux-rss/open-source/rss.xml" value="http://www.lemondeinformatique.fr/flux-rss/open-source/rss.xml" nbItem="1">le monde informatique</option> +<option id="http://www.lemonde.fr/rss/sequence/0,2-3208,1-0,0.xml" value="http://www.lemonde.fr/rss/sequence/0,2-3208,1-0,0.xml" nbItem="2">le monde</option> +<option id="http://blog.developpez.com/xmlsrv/rss2.php?blog=42" value="http://blog.developpez.com/xmlsrv/rss2.php?blog=42" nbItem="3">developpez.com</option> +<option id="http://formats-ouverts.org/rss.php" value="http://formats-ouverts.org/rss.php" nbItem="4">formats ouverts</option> +<option id="http://www.h2database.com/html/newsfeed-rss.xml" value="http://www.h2database.com/html/newsfeed-rss.xml" nbItem="5">h2</option> +<option id="http://www.opensi.org/news.rss" value="http://www.opensi.org/news.rss" nbItem="6">opensi</option> +
participants (1)
-
tchemit@users.labs.libre-entreprise.org