[web2py] Re: html from text

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 7:58:57 AM UTC-5, peter wrote: I have a couple of problems with 'text' fields in databases. I want to be able to use a WYSIWIG editor, so I have set up ckeditor using the instructions here http://www.web2pyslices.com/slices/take_slice/18 This works fine,

[web2py] Re: html from text

2011-11-10 Thread peter
thanks

[web2py] Re: html from text

2011-11-10 Thread peter
I am a bit bemused, surely the reason for using ckeditor is to have wysiwyg editing. Yet I have tried both the slices version and the the plugin of ckeditor and they both just seem to allow editing but with no toolbar for emboldening etc. I woudl have thought the defualt ought to include this. I

[web2py] Re: html from text

2011-11-10 Thread Anthony
I did it like this (using the jQuery adapter to start CKEditor): script type=text/javascript $(function() { var toolbar = [ { name: 'document',items : [ 'Source' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Workin in console : In [1]: test123 = 'test/test2/test3/' In [2]: test123 Out[2]: 'test/test2/test3/' In [3]: for v in test123.split('/'): ...: if v != '': ...: v ...: ...: Out[3]: 'test' Out[3]: 'test2' Out[3]: 'test3' In [4]: XML(UL(*[ LI(v) for v in

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Hello Anthony, I am trying to do something bizzard... I would like to have your advice if it's even possible : represent=lambda value, row: (value!=None and XML(UL(*[ LI(v) for v in value.split('/') if v != '' ]))) or 'None' I would like the default navigator drop box to display html stuff is

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
I don't understand -- where is that ul supposed to go? What field are your representing? What is the default navigator drop box? On Thursday, November 10, 2011 12:03:27 PM UTC-5, Richard wrote: Workin in console : In [1]: test123 = 'test/test2/test3/' In [2]: test123 Out[2]:

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
I have a dropdown, I use to represent the id of the linked table with the reprensent I wrote... Now the dropdown witdh get pretty large because of user data that I need to concatenate to make thing clear on what will be selected... User use to duplicate the unique key of the foreight table since

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
When you say dropdown, is it a select element, or some kind of JS or CSS menu based on a ul? On Thursday, November 10, 2011 12:55:57 PM UTC-5, Richard wrote: I have a dropdown, I use to represent the id of the linked table with the reprensent I wrote... Now the dropdown witdh get pretty

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Yes! Richard On Thu, Nov 10, 2011 at 1:20 PM, Anthony abasta...@gmail.com wrote: When you say dropdown, is it a select element, or some kind of JS or CSS menu based on a ul? On Thursday, November 10, 2011 12:55:57 PM UTC-5, Richard wrote: I have a dropdown, I use to represent the id of

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 1:31:04 PM UTC-5, Richard wrote: Yes! It was an either/or question. Is it a select or a ul based menu?

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Ok I think you were asking if it were the select html menu... Select menu and I want option to display differently... I should not used the ul li helper... I just copied this lambda from somewhere else in my code to try something and ul li seems to cause confusion in this context. I want to have

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Need something like this : http://www.web2ajax.fr/2008/02/03/facebook-like-jquery-and-autosuggest-search-engine/ Richard On Thu, Nov 10, 2011 at 2:06 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok I think you were asking if it were the select html menu... Select menu and I want

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
I don't think values inside option tags can include additional HTML markup. Anthony On Thursday, November 10, 2011 2:06:22 PM UTC-5, Richard wrote: Ok I think you were asking if it were the select html menu... Select menu and I want option to display differently... I should not used the

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Yeah I can take this awful shortcut :( Thanks Anthony. Richard On Thu, Nov 10, 2011 at 2:27 PM, Anthony abasta...@gmail.com wrote: I don't think values inside option tags can include additional HTML markup. Anthony On Thursday, November 10, 2011 2:06:22 PM UTC-5, Richard wrote: Ok I

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Mean can't... On Thu, Nov 10, 2011 at 2:32 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Yeah I can take this awful shortcut :( Thanks Anthony. Richard On Thu, Nov 10, 2011 at 2:27 PM, Anthony abasta...@gmail.com wrote: I don't think values inside option tags can include