Thứ Ba, 31 tháng 3, 2015

Cách gắn ckeditor và ckfinder vào website

(Bài viêt này là viết cho php nhưng khi dùng với mvc thì tương tự (thay chỗ nào php -> aspx:nói chung là thay tương ứng thư mục và tên file)) By admin | Published: April 28, 2012 1. Cách gắn ckeditor: B1: Bạn download bộ ckeditor về,  link: http://ckeditor.com/download, và để vào website của bạn (ví dụ: folder includes) B2: Trong file code của bạn, chổ nào bạn muốn thẻ textarea biến thành ckeditor thì, trên đầu file đó (trong phần header) bạn include  file ckeditor.js, như sau: <script language=”javascript” src=”[đường dẫn đến folder ckeditor]/ckeditor/ckeditor.js” type=”text/javascript”></script> Giả sử textarea của bạn có id là summary, phía dưới textarea đó bạn cho đoạn code sau vào <script type=”text/javascript”>CKEDITOR.replace(...
Read More »

Sử dụng ckeditor

Peter Keating Developer from the New Forest in the South of England. 14th June 2012 Using CKEditor with Razor for .NET MVC 3 At work we have a project coming up that requires content to be constructed by the user. For content entry we will implement a WYSIWYG editor to give users a familiar set of tools to interact with. There are a plethora of WYSIWYG editors available on the web, our chosen one is CKEditor. Having had previous experience with its predecessor the FCKEditor, the CKEditor offers a rich tool set that can be tailored to meet the requirements for content entry. CKEditor comes with well written documentation...
Read More »

Thứ Sáu, 20 tháng 3, 2015

Visitor pattern

Dude, are you still programming using if...then...else? Maxim Astafev, 22 Dec 2005    4.05 (44 votes) Rate: vote 1vote 2vote 3vote 4vote 5 This article shows a concrete example of the true advantages of using design patterns when implementing software. Download source - 18.3 Kb Introduction Do you hear a lot about software design, software architecture, and design patterns? But you hardly see any striking advantage to use them in your projects? Or...
Read More »