<script>
// 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',
});
</script>
<script src="https://cdn.ckeditor.com/4.6.2/standard/ckeditor.js"></script><textarea name="z">{{=person.summary_self_description}}</textarea><script>CKEDITOR.replace('z', {
height: 500,contentsCss: '{{=URL('static','css/contract.css')}}',format_tags: 'p;h1;h2;h3;h4;div',});</script>
Field(
'body', 'text', length=70000,
represent=lambda v, r: XML(v, sanitize=True)
),
def ckedit(field, value):return TEXTAREA(_id = str(field).replace('.','_'), _name = field.name,_class = 'text ckeditor', value = XML(value, sanitize = False), _cols = 800, _rows = 10)
Field('summary_self_description','text', label = 'About', widget=ckeditor.widget),
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.
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
Dave, there's a gap in my skill level to understand your question. Can I please ask for an example?
"basic" works to fix sanitation problem