init
This commit is contained in:
28
public/tinymce/tools/docs/tinymce.CommandEvent.js
Normal file
28
public/tinymce/tools/docs/tinymce.CommandEvent.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* This class is the event object send when the BeforeExecCommand and ExecCommand event occurs.
|
||||
*
|
||||
* @class tinymce.CommandEvent
|
||||
* @extends tinymce.Event
|
||||
* @example
|
||||
* tinymce.activeEditor.on('ExecCommand', function(e) {
|
||||
* console.log(e.command, e.ui, e.value);
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Name of the command to execute.
|
||||
*
|
||||
* @property {String} command
|
||||
*/
|
||||
|
||||
/**
|
||||
* User interface state. Normally false.
|
||||
*
|
||||
* @property {Boolean} ui User interface state.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Value object for the execCommand call.
|
||||
*
|
||||
* @property {Object} value
|
||||
*/
|
||||
53
public/tinymce/tools/docs/tinymce.ContentEvent.js
Normal file
53
public/tinymce/tools/docs/tinymce.ContentEvent.js
Normal file
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* This class is the event object send when the content events occurs such as GetContent/SetContent.
|
||||
*
|
||||
* @class tinymce.ContentEvent
|
||||
* @extends tinymce.Event
|
||||
* @example
|
||||
* tinymce.activeEditor.on('GetContent', function(e) {
|
||||
* console.log(e.content);
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional state gets added for the load event then it's set to true.
|
||||
*
|
||||
* @property {Boolean} load
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional state gets added for the save event then it's set to true.
|
||||
*
|
||||
* @property {Boolean} save
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional state gets added for the getContent event then it's set to true.
|
||||
*
|
||||
* @property {Boolean} set
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional state gets added for the setContent event then it's set to true.
|
||||
*
|
||||
* @property {Boolean} get
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional element that the load/save event is for. This element is the textarea/div element that the
|
||||
* contents gets parsed from or serialized to.
|
||||
*
|
||||
* @property {DOMElement} element
|
||||
*/
|
||||
|
||||
/**
|
||||
* Editor contents to be set or the content that was returned from the editor.
|
||||
*
|
||||
* @property {String} content HTML contents from the editor or to be put into the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Format of the contents normally "html".
|
||||
*
|
||||
* @property {String} format Format of the contents normally "html".
|
||||
*/
|
||||
121
public/tinymce/tools/docs/tinymce.Editor.js
Normal file
121
public/tinymce/tools/docs/tinymce.Editor.js
Normal file
@@ -0,0 +1,121 @@
|
||||
/**
|
||||
* This file contains the documentation for the Editor API.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Schema instance, enables you to validate elements and its children.
|
||||
*
|
||||
* @property schema
|
||||
* @type tinymce.html.Schema
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOM instance for the editor.
|
||||
*
|
||||
* @property dom
|
||||
* @type tinymce.dom.DOMUtils
|
||||
* @example
|
||||
* // Adds a class to all paragraphs within the editor
|
||||
* tinymce.activeEditor.dom.addClass(tinymce.activeEditor.dom.select('p'), 'someclass');
|
||||
*/
|
||||
|
||||
/**
|
||||
* HTML parser will be used when contents is inserted into the editor.
|
||||
*
|
||||
* @property parser
|
||||
* @type tinymce.html.DomParser
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOM serializer for the editor. Will be used when contents is extracted from the editor.
|
||||
*
|
||||
* @property serializer
|
||||
* @type tinymce.dom.Serializer
|
||||
* @example
|
||||
* // Serializes the first paragraph in the editor into a string
|
||||
* tinymce.activeEditor.serializer.serialize(tinymce.activeEditor.dom.select('p')[0]);
|
||||
*/
|
||||
|
||||
/**
|
||||
* Selection instance for the editor.
|
||||
*
|
||||
* @property selection
|
||||
* @type tinymce.dom.Selection
|
||||
* @example
|
||||
* // Sets some contents to the current selection in the editor
|
||||
* tinymce.activeEditor.selection.setContent('Some contents');
|
||||
*
|
||||
* // Gets the current selection
|
||||
* alert(tinymce.activeEditor.selection.getContent());
|
||||
*
|
||||
* // Selects the first paragraph found
|
||||
* tinymce.activeEditor.selection.select(tinymce.activeEditor.dom.select('p')[0]);
|
||||
*/
|
||||
|
||||
/**
|
||||
* Formatter instance.
|
||||
*
|
||||
* @property formatter
|
||||
* @type tinymce.Formatter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Undo manager instance, responsible for handling undo levels.
|
||||
*
|
||||
* @property undoManager
|
||||
* @type tinymce.UndoManager
|
||||
* @example
|
||||
* // Undoes the last modification to the editor
|
||||
* tinymce.activeEditor.undoManager.undo();
|
||||
*/
|
||||
|
||||
/**
|
||||
* Is set to true after the editor instance has been initialized
|
||||
*
|
||||
* @property initialized
|
||||
* @type Boolean
|
||||
* @example
|
||||
* function isEditorInitialized(editor) {
|
||||
* return editor && editor.initialized;
|
||||
* }
|
||||
*/
|
||||
|
||||
/**
|
||||
* Window manager reference, use this to open new windows and dialogs.
|
||||
*
|
||||
* @property windowManager
|
||||
* @type tinymce.WindowManager
|
||||
* @example
|
||||
* // Shows an alert message
|
||||
* tinymce.activeEditor.windowManager.alert('Hello world!');
|
||||
*
|
||||
* // Opens a new dialog with the file.htm file and the size 320x240
|
||||
* // It also adds a custom parameter this can be retrieved by using tinyMCEPopup.getWindowArg inside the dialog.
|
||||
* tinymce.activeEditor.windowManager.open({
|
||||
* url: 'file.htm',
|
||||
* width: 320,
|
||||
* height: 240
|
||||
* }, {
|
||||
* custom_param: 1
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Notification manager reference, use this to open new windows and dialogs.
|
||||
*
|
||||
* @property notificationManager
|
||||
* @type tinymce.NotificationManager
|
||||
* @example
|
||||
* // Shows a notification info message.
|
||||
* tinymce.activeEditor.notificationManager.open({text: 'Hello world!', type: 'info'});
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reference to the theme instance that was used to generate the UI.
|
||||
*
|
||||
* @property theme
|
||||
* @type tinymce.Theme
|
||||
* @example
|
||||
* // Executes a method on the theme directly
|
||||
* tinymce.activeEditor.theme.someMethod();
|
||||
*/
|
||||
50
public/tinymce/tools/docs/tinymce.Event.js
Normal file
50
public/tinymce/tools/docs/tinymce.Event.js
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* This is the base class for all TinyMCE events.
|
||||
*
|
||||
* @class tinymce.Event
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prevents the default action of an event to be executed.
|
||||
*
|
||||
* @method preventDefault
|
||||
*/
|
||||
|
||||
/**
|
||||
* Stops the event from propagating up to listeners on parent objects.
|
||||
*
|
||||
* @method stopPropagation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prevents the event from propagating to listeners on the same object.
|
||||
*
|
||||
* @method stopImmediatePropagation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns true/false if the default action is to be prevented or not.
|
||||
*
|
||||
* @method isDefaultPrevented
|
||||
* @return {Boolean} True/false if the event is to be execured or not.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns true/false if the event propagation is stopped or not.
|
||||
*
|
||||
* @method isPropagationStopped
|
||||
* @return {Boolean} True/false if the event propagation is stopped or not.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns true/false if the event immediate propagation is stopped or not.
|
||||
*
|
||||
* @method isImmediatePropagationStopped
|
||||
* @return {Boolean} True/false if the event immediate propagation is stopped or not.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The event type name for example "click".
|
||||
*
|
||||
* @property {String} type
|
||||
*/
|
||||
26
public/tinymce/tools/docs/tinymce.FocusEvent.js
Normal file
26
public/tinymce/tools/docs/tinymce.FocusEvent.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* This class is the event object sent when editors are focused/blurred.
|
||||
*
|
||||
* @class tinymce.FocusEvent
|
||||
* @extends tinymce.Event
|
||||
* @example
|
||||
* tinymce.activeEditor.on('focus', function(e) {
|
||||
* console.log(e.blurredEditor);
|
||||
* });
|
||||
*
|
||||
* tinymce.activeEditor.on('blur', function(e) {
|
||||
* console.log(e.focusedEditor);
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional editor instance that got the focus when the blur event occurs.
|
||||
*
|
||||
* @property {tinymce.Editor} focusedEditor
|
||||
*/
|
||||
|
||||
/**
|
||||
* Optional editor instance that got blurred when the focus event occurs.
|
||||
*
|
||||
* @property {tinymce.Editor} blurredEditor
|
||||
*/
|
||||
18
public/tinymce/tools/docs/tinymce.ProgressStateEvent.js
Normal file
18
public/tinymce/tools/docs/tinymce.ProgressStateEvent.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* This class is the event object send when the ProgressState event occurs.
|
||||
*
|
||||
* @class tinymce.ProgressStateEvent
|
||||
* @extends tinymce.Event
|
||||
*/
|
||||
|
||||
/**
|
||||
* True/false state when to show/hide the progress/throbber state for the editor.
|
||||
*
|
||||
* @property {Boolean} state State if the progress/throbber should be shown/hidden.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Time to wait before the progress/throbber is shown.
|
||||
*
|
||||
* @property {Number} time
|
||||
*/
|
||||
35
public/tinymce/tools/docs/tinymce.ResizeEvent.js
Normal file
35
public/tinymce/tools/docs/tinymce.ResizeEvent.js
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* This class is the event object sent when objects gets resized within the editor.
|
||||
*
|
||||
* @class tinymce.ResizeEvent
|
||||
* @extends tinymce.Event
|
||||
* @example
|
||||
* tinymce.activeEditor.on('ObjectResizeStart', function(e) {
|
||||
* if (e.target.nodeName == 'IMG') {
|
||||
* // Prevent resize
|
||||
* e.preventDefault();
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* tinymce.activeEditor.on('ObjectResized', function(e) {
|
||||
* console.log(e.target, e.width, e.height);
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Current element that is to be resized or has been resized.
|
||||
*
|
||||
* @property {DOMElement} target
|
||||
*/
|
||||
|
||||
/**
|
||||
* Current width of the object before or after resize.
|
||||
*
|
||||
* @property {Number} width
|
||||
*/
|
||||
|
||||
/**
|
||||
* Current height of the object before or after resize.
|
||||
*
|
||||
* @property {Number} height
|
||||
*/
|
||||
51
public/tinymce/tools/docs/tinymce.js
Normal file
51
public/tinymce/tools/docs/tinymce.js
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* TinyMCE core class.
|
||||
*
|
||||
* @static
|
||||
* @class tinymce
|
||||
* @borrow-members tinymce.EditorManager
|
||||
* @borrow-members tinymce.util.Tools
|
||||
*/
|
||||
|
||||
/**
|
||||
* @property {tinymce.dom.DOMUtils} DOM Global DOM instance.
|
||||
* @property {tinymce.dom.ScriptLoader} ScriptLoader Global ScriptLoader instance.
|
||||
* @property {tinymce.AddOnManager} PluginManager Global PluginManager instance.
|
||||
* @property {tinymce.AddOnManager} ThemeManager Global ThemeManager instance.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Root level namespace this contains classes directly related to the TinyMCE editor.
|
||||
*
|
||||
* @namespace tinymce
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains classes for handling the browsers DOM.
|
||||
*
|
||||
* @namespace tinymce.dom
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains html parser and serializer logic.
|
||||
*
|
||||
* @namespace tinymce.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains the different UI types such as buttons, listboxes etc.
|
||||
*
|
||||
* @namespace tinymce.ui
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains various utility classes such as json parser, cookies etc.
|
||||
*
|
||||
* @namespace tinymce.util
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains modules to handle data binding.
|
||||
*
|
||||
* @namespace tinymce.data
|
||||
*/
|
||||
Reference in New Issue
Block a user