Skip to content

Instantly share code, notes, and snippets.

@peterkeating
peterkeating / gist:3590630
Created September 1, 2012 23:10
Example of a client side LESS implementation.
<html>
<head>
<title>LESS client side example.</title>
<link rel="stylesheet/less" href="css/less/styles.less" />
<script src="/js/vendor/less-1.3.0.min.js"></script>
</head>
<body>
URLRequestDefaults.idleTimeout = 1000*60*60;
@peterkeating
peterkeating / Eclipse.ini.
Created July 18, 2012 13:11
Configuration for eclipse.
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
$(function () {
$('#Text').ckeditor();
CKFinder.setupCKEditor(null, '/ckfinder/');
});
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
using System;
using System.Web.Mvc;
using CKEditorExample.ViewModels.Content;
namespace CKEditorExample.Controllers
{
public class ContentController : Controller
{
[HttpGet]
public ActionResult Index()
@model CKEditorExample.ViewModels.Content.ContentViewModel
@{
ViewBag.Title = "Content Entry";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Content Input</h2>
<form method="post" action="/Content/Submit">
using System;
namespace CKEditorExample.ViewModels.Content
{
public class ContentViewModel
{
public string Text { get; set; }
}
}