michaelfox + cms 40
PHPCR - Content Repository for PHP
december 2011 by michaelfox
The PHP Content Repository is an adaption of the Java Content Repository (JCR) standard, an open API specification defined in JSR-283.
The API defines how to handle hierarchical semi-structured data in a consistent way. The typical use case is content management systems. PHPCR combines the best out of document-oriented databases (weak structured data) and of XML databases (hiearchical trees). On top of that, it adds useful features like searching, versioning, access control and locking on top of it.
php
cms
contentrepository
The API defines how to handle hierarchical semi-structured data in a consistent way. The typical use case is content management systems. PHPCR combines the best out of document-oriented databases (weak structured data) and of XML databases (hiearchical trees). On top of that, it adds useful features like searching, versioning, access control and locking on top of it.
december 2011 by michaelfox
Coordino - Home - A FREE PHP StackOverflow Clone
october 2011 by michaelfox
An open source Stack Overflow-style Q&A engine
opensource
system
admin
forums
q&a
stackoverflow
cms
october 2011 by michaelfox
garann/wcteditor - GitHub
february 2011 by michaelfox
WCTeditor
A super-simple text editor for modern browsers. Supports:
bold
italic
underline
numbered lists
bulleted lists
links
stripping html (except line breaks/paragraphs)
spell-check via callback
Tested so far and works ok in:
FF 3.6
Chrome 8
Safari 5
Opera 11
IE 7+
NOT mobile WebKit
Usage
Requires jQuery and the jQuery templates plugin (there's also a version with no template dependency). Get those and then apply the WCTeditor plugin to a textarea with some options:
$("#myTextArea").WCTeditor({
showNumList: true,
showBullList: true,
pathToPlugin:"../"
});
Yay! Done.
Options
showBold
boolean: Whether or not you'd like the bold button to be shown. On by default.
showItalic
boolean: Whether or not you'd like the italicize button to be shown. On by default.
showUnderline
boolean: Whether or not you'd like the underline button to be shown.
showNumList
boolean: Whether or not you'd like the ordered list button to be shown.
showBullList
boolean: Whether or not you'd like the unordered list button to be shown.
showLink
boolean: Whether or not you'd like the link button to be shown. On by default.
showStripHtml
boolean: Whether or not you'd like the strip/clean up HTML button to be shown.
showSpellCheck
boolean: Whether or not you'd like the spellcheck button to be shown.
userClasses
array of strings: CSS class(es) you'd like to have applied to the div that wraps the editor.
defaultText
string: Text you want the editor to display with, if different than what's in your textarea.
showCharCount
boolean: Whether or not you'd like to show a character counter. See below for where to change the way the character counter works.
charCountTmpl
string: The template for your character counter. This can be just text or some HTML, but you need to insert "{{html chars}}" where you want the count to actually appear.
maxLength
integer: The maximum length of the user's input, including HTML, if different than the maxlength of your textarea.
spellcheckUrl
string: Path to the spellchecking service you'd like to call.
pathToPlugin
string: Location of this plugin (i.e., location of WCTeditor.js) relative to the file it's being implemented in.
theme
string: A directory name. The plugin will look for a stylesheet at [pathToPlugin]/themes/[theme]/WCTeditor.css
placeholderText
string: Helpful text that will display within the editor while it is empty, if defaultText is not set and the textarea is empty.
Functions
You may want to override some of these to change the default functionality.
applyFormatting
Applies the basic designMode commands.
updateTextarea
Pushes changes to the editor to your textarea, then calls updateCharCount if it's enabled.
updateCharCount
Updates the character count. Counts down from your specified maximum, then goes to negative. Assigns the CSS class "tooLong" to the count only once it goes negative.
updateButtons
Updates the state of the formatting buttons depending on the cursor location.
setLink
args: leftPosition (left position of formatting button)
Displays the interface to set a URL and wires up the button in that interface to update the editor markup.
stripHTML
Removes all markup except paragraphs and line breaks.
stripHTMLComments
Removes HTML comments from content pasted into the editor.
spellcheck
IE-only implementation, because other browsers include spellcheck. Sends the text within the editor to the service specified by the spellcheckUrl property, and expects an array of results in the format:
{originalWord: string, suggestions: []}
Wraps each misspelling in a font tag, and wires up an event handler to display a small window with the suggestions and an option to ignore the misspelling. Clicking a suggestion replaces the misspelling and removes the font tag, clicking ignore simply removes the font tag.
contenteditable
editor
github
javascript
src
firefox
mozilla
wysiwyg
html5
richtextediting
element
cms
admin
rte
designMode
forms
A super-simple text editor for modern browsers. Supports:
bold
italic
underline
numbered lists
bulleted lists
links
stripping html (except line breaks/paragraphs)
spell-check via callback
Tested so far and works ok in:
FF 3.6
Chrome 8
Safari 5
Opera 11
IE 7+
NOT mobile WebKit
Usage
Requires jQuery and the jQuery templates plugin (there's also a version with no template dependency). Get those and then apply the WCTeditor plugin to a textarea with some options:
$("#myTextArea").WCTeditor({
showNumList: true,
showBullList: true,
pathToPlugin:"../"
});
Yay! Done.
Options
showBold
boolean: Whether or not you'd like the bold button to be shown. On by default.
showItalic
boolean: Whether or not you'd like the italicize button to be shown. On by default.
showUnderline
boolean: Whether or not you'd like the underline button to be shown.
showNumList
boolean: Whether or not you'd like the ordered list button to be shown.
showBullList
boolean: Whether or not you'd like the unordered list button to be shown.
showLink
boolean: Whether or not you'd like the link button to be shown. On by default.
showStripHtml
boolean: Whether or not you'd like the strip/clean up HTML button to be shown.
showSpellCheck
boolean: Whether or not you'd like the spellcheck button to be shown.
userClasses
array of strings: CSS class(es) you'd like to have applied to the div that wraps the editor.
defaultText
string: Text you want the editor to display with, if different than what's in your textarea.
showCharCount
boolean: Whether or not you'd like to show a character counter. See below for where to change the way the character counter works.
charCountTmpl
string: The template for your character counter. This can be just text or some HTML, but you need to insert "{{html chars}}" where you want the count to actually appear.
maxLength
integer: The maximum length of the user's input, including HTML, if different than the maxlength of your textarea.
spellcheckUrl
string: Path to the spellchecking service you'd like to call.
pathToPlugin
string: Location of this plugin (i.e., location of WCTeditor.js) relative to the file it's being implemented in.
theme
string: A directory name. The plugin will look for a stylesheet at [pathToPlugin]/themes/[theme]/WCTeditor.css
placeholderText
string: Helpful text that will display within the editor while it is empty, if defaultText is not set and the textarea is empty.
Functions
You may want to override some of these to change the default functionality.
applyFormatting
Applies the basic designMode commands.
updateTextarea
Pushes changes to the editor to your textarea, then calls updateCharCount if it's enabled.
updateCharCount
Updates the character count. Counts down from your specified maximum, then goes to negative. Assigns the CSS class "tooLong" to the count only once it goes negative.
updateButtons
Updates the state of the formatting buttons depending on the cursor location.
setLink
args: leftPosition (left position of formatting button)
Displays the interface to set a URL and wires up the button in that interface to update the editor markup.
stripHTML
Removes all markup except paragraphs and line breaks.
stripHTMLComments
Removes HTML comments from content pasted into the editor.
spellcheck
IE-only implementation, because other browsers include spellcheck. Sends the text within the editor to the service specified by the spellcheckUrl property, and expects an array of results in the format:
{originalWord: string, suggestions: []}
Wraps each misspelling in a font tag, and wires up an event handler to display a small window with the suggestions and an option to ignore the misspelling. Clicking a suggestion replaces the misspelling and removes the font tag, clicking ignore simply removes the font tag.
february 2011 by michaelfox
totes profesh» Blog Archive » making a really simple text editor
february 2011 by michaelfox
function getRange() {
return window.getSelection ?
window.getSelection().getRangeAt(0) :
document.selection.createRange();
}
function setSelection(range) {
if (range.select) {
range.select();
} else {
var selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(range);
}
}
editor
firefox
javascript
mozilla
wysiwyg
contenteditable
html5
richtextediting
element
cms
admin
rte
designMode
forms
return window.getSelection ?
window.getSelection().getRangeAt(0) :
document.selection.createRange();
}
function setSelection(range) {
if (range.select) {
range.select();
} else {
var selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(range);
}
}
february 2011 by michaelfox
How to Create an HTML Editor Application
february 2011 by michaelfox
This tutorial describes how to use features found in Microsoft Internet Explorer 5.5 or later to create an HTML Editor Application. The application you create in this tutorial contains an editable region where users can type and format text using all of the standard formatting commands. For example, users can make the text bold or italic, change the font size, and make bulleted or numbered lists. A toolbar provides the formatting buttons, buttons for opening and saving files, and drop-down list boxes for font and block formatting selections. A menu allows alternate access to the functionality provided by the toolbar. As of Internet Explorer 6, you can also use the HtmlDlgSafeHelper object to change the face or color of the font.
With this HTML Editor Application, users can create HTML documents and save them to disk in either HTML or text format. If saved as an .htm file, the documents are viewable in Windows Internet Explorer or in the HTML Editor Application. Files saved as .txt can be viewed in any text editor.
This tutorial demonstrates how to do the following:
Create and use editable regions with the CONTENTEDITABLE attribute.
Use formatting Command Identifiers and the execCommand method.
Use the Internet Explorer WebControls toolbar element behavior, as well as a menu element behavior and an HTML+TIME (Timed Interactive Multimedia Extensions) time2 behavior that displays a splash screen.
Use the HtmlDlgSafeHelper object to access the fonts and block formats on a user's machine, and to display the color dialog box. Internet Explorer 6 introduces the HtmlDlgSafeHelper object.
Create an HTML Application (HTA).
You can use this kind of application to allow "what you see is what you get" (WYSIWYG) content editing of Web sites by users. You can also use this type of application as an editor for an Internet e-mail program.
Requirements and Dependencies
Implementation Steps
Step 1: Create the HTML file
Step 2: Create the Toolbars
Step 3: Create the Text Formatting Functions
Step 4: Create the File New, File Open, and File Save Functions
Step 5: Create the Menu
Step 6: Create the Splash Screen
Final Wrap-up
Related Topics
editor
firefox
javascript
mozilla
wysiwyg
contenteditable
html5
richtextediting
element
cms
admin
rte
designMode
forms
With this HTML Editor Application, users can create HTML documents and save them to disk in either HTML or text format. If saved as an .htm file, the documents are viewable in Windows Internet Explorer or in the HTML Editor Application. Files saved as .txt can be viewed in any text editor.
This tutorial demonstrates how to do the following:
Create and use editable regions with the CONTENTEDITABLE attribute.
Use formatting Command Identifiers and the execCommand method.
Use the Internet Explorer WebControls toolbar element behavior, as well as a menu element behavior and an HTML+TIME (Timed Interactive Multimedia Extensions) time2 behavior that displays a splash screen.
Use the HtmlDlgSafeHelper object to access the fonts and block formats on a user's machine, and to display the color dialog box. Internet Explorer 6 introduces the HtmlDlgSafeHelper object.
Create an HTML Application (HTA).
You can use this kind of application to allow "what you see is what you get" (WYSIWYG) content editing of Web sites by users. You can also use this type of application as an editor for an Internet e-mail program.
Requirements and Dependencies
Implementation Steps
Step 1: Create the HTML file
Step 2: Create the Toolbars
Step 3: Create the Text Formatting Functions
Step 4: Create the File New, File Open, and File Save Functions
Step 5: Create the Menu
Step 6: Create the Splash Screen
Final Wrap-up
Related Topics
february 2011 by michaelfox
designMode Property (document, HTMLDocument Constructor)
february 2011 by michaelfox
Sets or gets a value that indicates whether the document can be edited.
Syntax
Copy
[ sMode = ] object.designMode
Possible Values
sMode String that specifies or receives one of the following values.
On
Document can be edited.
Off | Inherit
Default. Document cannot be edited.
The property is read/write. The property has a default value of Off | Inherit.
DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.
Remarks
You can use the designMode property to put Windows Internet Explorer into a mode so that you can edit the current document.
While the browser is in design mode, objects enter a UI-activated state when the user presses ENTER, clicks an object that has focus, or double-clicks the object. Objects that are UI-activated have their own window in the document. You can modify the UI only when the object is in a UI-activated state.
You cannot execute script when the value of the designMode property is set to On.
editor
firefox
javascript
mozilla
wysiwyg
contenteditable
html5
richtextediting
element
cms
admin
rte
designMode
forms
Syntax
Copy
[ sMode = ] object.designMode
Possible Values
sMode String that specifies or receives one of the following values.
On
Document can be edited.
Off | Inherit
Default. Document cannot be edited.
The property is read/write. The property has a default value of Off | Inherit.
DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.
Remarks
You can use the designMode property to put Windows Internet Explorer into a mode so that you can edit the current document.
While the browser is in design mode, objects enter a UI-activated state when the user presses ENTER, clicks an object that has focus, or double-clicks the object. Objects that are UI-activated have their own window in the document. You can modify the UI only when the object is in a UI-activated state.
You cannot execute script when the value of the designMode property is set to On.
february 2011 by michaelfox
Must have features in your CMS at Udi Mosayev
may 2010 by michaelfox
1. BackOffice for the BackOffice
2. Protected Items
3. Modules On/Off
4. System Logs
5. Duplicate Items
6. System Restore
cms
modules
bestpractices
planning
checklist
admin
content
management
features
list
2. Protected Items
3. Modules On/Off
4. System Logs
5. Duplicate Items
6. System Restore
may 2010 by michaelfox
A List Apart: Articles: Content Templates to the Rescue
july 2009 by michaelfox
One tool I’ve found extremely helpful whenever more than a handful of people will touch the content on a new site is the content template. A content template is a simple document that serves two purposes: it’s a paragraph-level companion to your website’s wireframes (or other IA blueprints), and it’s a simple, effective means of getting useful information from your experts to your writers. (It is not the same thing as an HTML template you feed to your content management system.)
workflow
projectmanagement
writing
template
copy
article
cms
bestpractices
*blog
july 2009 by michaelfox
related tags
*blog ⊕ admin ⊕ ajax ⊕ apps ⊕ article ⊕ bestpractices ⊕ blog ⊕ blogging ⊕ cart ⊕ checklist ⊕ cms ⊖ codeigniter ⊕ collection ⊕ comparison ⊕ content ⊕ contenteditable ⊕ contentrepository ⊕ copy ⊕ css ⊕ design ⊕ designMode ⊕ development ⊕ ecommerce ⊕ editor ⊕ ee ⊕ element ⊕ expressionengine ⊕ features ⊕ firefox ⊕ flash ⊕ forms ⊕ forums ⊕ framework ⊕ funny ⊕ github ⊕ howto ⊕ html ⊕ html5 ⊕ humor ⊕ inspiration ⊕ interface ⊕ javascript ⊕ jquery ⊕ lightweight ⊕ list ⊕ management ⊕ modules ⊕ mozilla ⊕ music ⊕ opensource ⊕ patterns ⊕ php ⊕ planning ⊕ programming ⊕ projectmanagement ⊕ q&a ⊕ reference ⊕ repo ⊕ resources ⊕ richtextediting ⊕ rte ⊕ ruby ⊕ shopping ⊕ social ⊕ socialnetwork ⊕ socialnetworking ⊕ software ⊕ src ⊕ stackoverflow ⊕ standard ⊕ store ⊕ system ⊕ template ⊕ theme ⊕ toolbox ⊕ toolkit ⊕ tools ⊕ tutorial ⊕ ui ⊕ ux ⊕ web2.0 ⊕ webdev ⊕ wiki ⊕ workflow ⊕ writing ⊕ wysiwyg ⊕ zend ⊕ zend.framework ⊕Copy this bookmark: