Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Offline Article Editor For CodeProject

, 15 Dec 2013
An offline wysiwyg editor to backup, edit or create new articles for CodeProject.

Editorial Note

Having trouble writing or posting articles? These articles aim to gather together tips and tricks from authors and mentors to help you write great articles.

CodeProjectArticleEditor.exe.zip
CodeProjectArticleEditor.exe
CodeProjectArticleEditor.exe
RequiredFiles
ckeditor
images
spacer.gif
lang
plugins
clipboard
dialogs
find
dialogs
image
dialogs
link
dialogs
images
anchor.gif
pastefromword
filter
pastetext
dialogs
preview
showblocks
images
block_address.png
block_blockquote.png
block_div.png
block_h1.png
block_h2.png
block_h3.png
block_h4.png
block_h5.png
block_h6.png
block_p.png
block_pre.png
specialchar
dialogs
lang
styles
styles
stylesheetparser
table
dialogs
tableresize
skins
kama
icons.png
icons_rtl.png
images
dialog_sides.gif
dialog_sides.png
dialog_sides_rtl.png
mini.gif
noimage.png
sprites.png
sprites_ie6.png
toolbar_start.gif
themes
default
CodeProjectArticleEditor_source.zip
CodeProjectArticleEditor_source
Icons
browse-icon.png
create-icon.png
download-icon.png
icon.ico
login-icon.png
logout-icon.png
main.png
Properties
Settings.settings
RequiredFiles
ckeditor
images
spacer.gif
lang
plugins
clipboard
dialogs
find
dialogs
image
dialogs
link
dialogs
images
anchor.gif
pastefromword
filter
pastetext
dialogs
preview
showblocks
images
block_address.png
block_blockquote.png
block_div.png
block_h1.png
block_h2.png
block_h3.png
block_h4.png
block_h5.png
block_h6.png
block_p.png
block_pre.png
specialchar
dialogs
lang
styles
styles
stylesheetparser
table
dialogs
tableresize
skins
kama
icons.png
icons_rtl.png
images
dialog_sides.gif
dialog_sides.png
dialog_sides_rtl.png
mini.gif
noimage.png
sprites.png
sprites_ie6.png
toolbar_start.gif
themes
default
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.dialog.add('anchor',function(a){var b=function(d){this._.selectedElement=d;var e=d.data('cke-saved-name');this.setValueOf('info','txtName',e||'');};function c(d,e){return d.createFakeElement(e,'cke_anchor','anchor');};return{title:a.lang.anchor.title,minWidth:300,minHeight:60,onOk:function(){var k=this;var d=CKEDITOR.tools.trim(k.getValueOf('info','txtName')),e={name:d,'data-cke-saved-name':d};if(k._.selectedElement){if(k._.selectedElement.data('cke-realelement')){var f=c(a,a.document.createElement('a',{attributes:e}));f.replace(k._.selectedElement);}else k._.selectedElement.setAttributes(e);}else{var g=a.getSelection(),h=g&&g.getRanges()[0];if(h.collapsed){if(CKEDITOR.plugins.link.synAnchorSelector)e['class']='cke_anchor_empty';if(CKEDITOR.plugins.link.emptyAnchorFix){e.contenteditable='false';e['data-cke-editable']=1;}var i=a.document.createElement('a',{attributes:e});if(CKEDITOR.plugins.link.fakeAnchor)i=c(a,i);h.insertNode(i);}else{if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)e['class']='cke_anchor';var j=new CKEDITOR.style({element:'a',attributes:e});j.type=CKEDITOR.STYLE_INLINE;j.apply(a.document);}}},onHide:function(){delete this._.selectedElement;},onShow:function(){var h=this;var d=a.getSelection(),e=d.getSelectedElement(),f;if(e){if(CKEDITOR.plugins.link.fakeAnchor){var g=CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,e);g&&b.call(h,g);h._.selectedElement=e;}else if(e.is('a')&&e.hasAttribute('name'))b.call(h,e);}else{f=CKEDITOR.plugins.link.getSelectedLink(a);if(f){b.call(h,f);d.selectElement(f);}}h.getContentElement('info','txtName').focus();},contents:[{id:'info',label:a.lang.anchor.title,accessKey:'I',elements:[{type:'text',id:'txtName',label:a.lang.anchor.name,required:true,validate:function(){if(!this.getValue()){alert(a.lang.anchor.errorName);return false;}return true;}}]}]};});

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Huseyin Atasoy
Engineer
Turkey Turkey
I am interested in artifical intelligence, signal processing, electronics, robotics and internet/network technologies.
 
A few of my works:
Real-time facial expression recognition
Real-time face recognition
Real-time object recognition
LANPhone [Android, Windows]
Javascript encrypter
 
My blog

| Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 15 Dec 2013
Article Copyright 2012 by Huseyin Atasoy
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid