﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4919	Jquery adapter sample file is incorrect	Wiktor Walc	Tobiasz Cudnik	"There is a very specific way of creating samples for CKEditor.
A short description is available here: http://docs.cksource.com/FCKeditor_3.x/Design_and_Architecture/CKReleaser#Samples

In short, html samples are just templates and sample-specific content should be placed inside of elements with the following IDs:
 * headscript (optional): contains sample specific script to be loaded in the <head>. 
 * styles (optional): contains sample specific styles. 
 * html: contains the HTML data that effectively represents the sample. 
 * code: contains the sample code, used to illustrate the API usage in the sample.

Another rule is that all sample files should be loading sample.js:
{{{
<script type=""text/javascript"" src=""sample.js""></script>
}}}

In jqueryadapter.html the following files are loaded in the `<head>` section, which causes that sample processed by CKReleaser is not working:
 * http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js
 * adapters/jquery.js""

Ideally, both files should be loaded in a script with id ""headscript"" and below there should be a jquery code `$( function() ... } );` that is currently in a script that has no id attribute.

To test whether the template is correct, just launch `_samples/sample.html?sample=jqueryadapter` and see whether it works.

There is one more minor bug that can be corrected as well: http://www.fckeditor.net url shouldn't be used any more in the sample text."	Bug	closed	Normal	CKEditor 3.1	General	SVN (CKEditor) - OLD	fixed	Confirmed Review?	
