[web2py] Re: CKEditor CDN

2017-04-17 Thread Dave S
On Sunday, April 16, 2017 at 7:19:53 PM UTC-7, Alex Glaros wrote: > > "basic" works to fix sanitation problem > > https://cdn.ckeditor.com/4.6.2/basic/ckeditor.js";> > Glad you got it working. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: CKEditor CDN

2017-04-16 Thread Alex Glaros
"basic" works to fix sanitation problem https://cdn.ckeditor.com/4.6.2/basic/ckeditor.js";> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] Re: CKEditor CDN

2017-04-16 Thread Alex Glaros
thanks Dave, below worked, but sanitize=True removes tables and other elements that user creates so I have to read documentation on how to remove those buttons from the toolbar. https://cdn.ckeditor.com/4.6.2/standard/ckeditor.js";> What is your name?

[web2py] Re: CKEditor CDN

2017-04-14 Thread Dave S
On Friday, April 14, 2017 at 4:07:58 PM UTC-7, Alex Glaros wrote: > > Dave, there's a gap in my skill level to understand your question. Can I > please ask for an example? > A textarea, which is what it looks like CKEditor manipulates, is an input field in a form. The submit button for a

[web2py] Re: CKEditor CDN

2017-04-14 Thread Alex Glaros
Dave, there's a gap in my skill level to understand your question. Can I please ask for an example? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] Re: CKEditor CDN

2017-04-14 Thread Dave S
On Friday, April 14, 2017 at 3:17:57 PM UTC-7, Alex Glaros wrote: > > I think is the same. > > Works great, but once I have the edited content, I don't know how to load > it into the table > HTTP POST? /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: CKEditor CDN

2017-04-14 Thread Alex Glaros
I think is the same. Works great, but once I have the edited content, I don't know how to load it into the table -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report

[web2py] Re: CKEditor CDN

2017-04-14 Thread Dave S
On Friday, April 14, 2017 at 1:47:04 PM UTC-7, Alex Glaros wrote: > > Not sure what you mean, I don't want to use the plug-in any more; just use > the CDN. > > Whatever it take to do that, I'll change, unless security is not good. > What I mean is "CDN" means "Content Delivery Network". They

[web2py] Re: CKEditor CDN

2017-04-14 Thread Alex Glaros
Not sure what you mean, I don't want to use the plug-in any more; just use the CDN. Whatever it take to do that, I'll change, unless security is not good. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: CKEditor CDN

2017-04-14 Thread Dave S
On Friday, April 14, 2017 at 1:01:24 PM UTC-7, Alex Glaros wrote: > > gap in my understanding: > > how to get var "z", textarea content into w2p field > person.summary_self_description ? > > When I used to use ckEditor as a plug-in, looked like this in controller: > > def ckedit(field, value):

[web2py] Re: CKEditor CDN

2017-04-14 Thread Alex Glaros
gap in my understanding: how to get var "z", textarea content into w2p field person.summary_self_description ? When I used to use ckEditor as a plug-in, looked like this in controller: def ckedit(field, value): return TEXTAREA(_id = str(field).replace('.','_'), _name = field.name,

[web2py] Re: CKEditor CDN

2017-04-14 Thread Michael Beller
I created a custom css file and limited the tags available in the example I posted, you can remove those arguments and you'll get the ckeditor defaults. If you're using SQLFORM then the text field is updated automatically along with any other form field - there's no special processing you have

[web2py] Re: CKEditor CDN

2017-04-14 Thread Alex Glaros
It's looking better Michael but based on code example below, could you please help with: 1. Remind me how to get the updated text from textarea back into the table 2. the fromat_tags parm,, seems that purpose is to limit what user can do? If yes, don't seem to make the rest of the tags

[web2py] Re: CKEditor CDN

2017-04-14 Thread Michael Beller
I add this to my base template: // Replace the textarea with a CKEditor instance (replace 'content_body' with the id of your textarea) CKEDITOR.replace('content_body', { height: 500, contentsCss: '{{=URL('static','css/contract.css')}}', format_tags: 'p;h1;h2;h3;h4;div', });