DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB

Integrating LINQ to Umbraco into the umbraco UI
Upgrade 4.1 to .NET 3.5

[TFS Changeset #55173]
This commit is contained in:
slace
2009-06-20 14:23:15 +00:00
parent 79872c5d0f
commit 145e75ebdc
32 changed files with 658 additions and 187 deletions

View File

@@ -16,9 +16,25 @@ namespace umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker
Words = new List<string>();
}
/// <summary>
/// Gets or sets the id from TinyMCE
/// </summary>
/// <value>The id.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the spellchecking method. eg: checkWords, getSuggestions
/// </summary>
/// <value>The method.</value>
public string Method { get; set; }
/// <summary>
/// Gets or sets the language used by the content
/// </summary>
/// <value>The language.</value>
public string Language { get; set; }
/// <summary>
/// Gets or sets the words which are to be spell checked
/// </summary>
/// <value>The words.</value>
public List<string> Words { get; set; }
@@ -27,17 +43,17 @@ namespace umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker
/// </summary>
/// <param name="stream">The stream.</param>
/// <returns></returns>
public static SpellCheckerInput Parse(StreamReader stream)
public static SpellCheckerInput Parse(StreamReader inputStream)
{
if (stream == null)
if (inputStream == null)
{
throw new ArgumentNullException("stream");
}
if (stream.EndOfStream)
if (inputStream.EndOfStream)
{
throw new ArgumentException("Stream end reached before we started!");
}
var jsonString = stream.ReadLine();
var jsonString = inputStream.ReadLine();
var deserialized = (Dictionary<string, object>)new JavaScriptSerializer().DeserializeObject(jsonString);
var input = new SpellCheckerInput();

View File

@@ -14,8 +14,20 @@ namespace umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker
result = new List<string>();
}
/// <summary>
/// Gets or sets the spellcheck words
/// </summary>
/// <value>The result.</value>
public List<string> result { get; set; }
/// <summary>
/// Gets or sets the id of the initial request
/// </summary>
/// <value>The id.</value>
public string id { get; set; }
/// <summary>
/// Gets or sets the error details if there was a problem when performing the spellcheck
/// </summary>
/// <value>The error.</value>
public string error { get; set; }
}
}