~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/common/codepress/codepress.js

Created a new help system.

The new help system allows plugins to register their help paths, using
a dict of dicts and helpfile paths. This system allows multiple plugins
to use the same heading for their help files (ie. 'admin').

It also allows XHTMLViews to have a 'help' property, which makes the
context-sensitive help link point to their help path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                return self.editor.addChangeHandler ? self.editor.addChangeHandler(handler) : false;
70
70
        }
71
71
 
 
72
        self.addSaveHandler = function(handler) {
 
73
                return self.editor.addSaveHandler ? self.editor.addSaveHandler(handler) : false;
 
74
        }
 
75
 
72
76
        self.toggleAutoComplete = function() {
73
77
                self.editor.autocomplete = (self.editor.autocomplete) ? false : true;
74
78
        }