2 "name" : "Roo.HtmlEditorCore",
10 "desc" : "Provides a the editing component for the HTML editors in Roo. (bootstrap and Roo.form)\n\nany element that has display set to 'none' can cause problems in Safari and Firefox.<br/><br/>",
11 "isSingleton" : false,
15 "isBuilderTop" : false,
16 "memberOf" : "HtmlEditorCore",
29 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
30 "memberOf" : "Roo.util.Observable"
33 "name" : "allowComments",
35 "desc" : "- default false - allow comments in HTML source - by default they are stripped - if you are editing email you may need this.",
36 "memberOf" : "Roo.HtmlEditorCore"
40 "type" : "Roo.form.HtmlEditor|Roo.bootstrap.HtmlEditor",
41 "desc" : "owner field",
42 "memberOf" : "Roo.HtmlEditorCore"
47 "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
48 "memberOf" : "Roo.Component"
51 "name" : "allowDomMove",
53 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
54 "memberOf" : "Roo.Component"
57 "name" : "actionMode",
59 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl",
60 "memberOf" : "Roo.Component"
65 "desc" : "(in pixels)",
66 "memberOf" : "Roo.HtmlEditorCore"
71 "desc" : "'s' or 'se' or 'e' - wrapps the element in a\n Roo.resizable.",
72 "memberOf" : "Roo.HtmlEditorCore"
77 "desc" : "(in pixels)",
78 "memberOf" : "Roo.HtmlEditorCore"
81 "name" : "disableClass",
83 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
84 "memberOf" : "Roo.Component"
87 "name" : "stylesheets",
89 "desc" : "url of stylesheets. set to [] to disable stylesheets.",
90 "memberOf" : "Roo.HtmlEditorCore"
97 "desc" : "Executes a Midas editor command on the editor document and performs necessary focus and\ntoolbar updates. <b>This should only be called after the editor is initialized.</b>",
98 "sig" : "(cmd, value)",
102 "isConstructor" : false,
114 "desc" : "The Midas command",
119 "type" : "String/Boolean",
120 "desc" : "(optional) The value to pass to the command (defaults to null)",
129 "desc" : "Executes a Midas editor command directly on the editor document.\nFor visual commands, you should use {@link #relayCmd} instead.\n<b>This should only be called after the editor is initialized.</b>",
130 "sig" : "(cmd, value)",
134 "isConstructor" : false,
146 "desc" : "The Midas command",
151 "type" : "String/Boolean",
152 "desc" : "(optional) The value to pass to the command (defaults to null)",
159 "name" : "cleanWord",
161 "desc" : "Clean up MS wordisms...",
162 "sig" : "()\n{\n\n}",
166 "isConstructor" : false,
178 "name" : "syncValue",
180 "desc" : "HTML Editor -> Textarea\nProtected method that will not generally be called directly. Syncs the contents\nof the editor iframe with the textarea.",
181 "sig" : "()\n{\n\n}",
185 "isConstructor" : false,
197 "name" : "cleanTableWidths",
199 "desc" : "cleanTableWidths.\n\nQuite often pasting from word etc.. results in tables with column and widths.\nThis does not work well on fluid HTML layouts - like emails. - so this code should hunt an destroy them..",
200 "sig" : "()\n{\n\n}",
204 "isConstructor" : false,
216 "name" : "cleanHtml",
218 "desc" : "Protected method that will not generally be called directly. If you need/want\ncustom HTML cleanup, this is the method you should override.",
223 "isConstructor" : false,
235 "desc" : "The HTML to be cleaned\nreturn {String} The cleaned HTML",
242 "name" : "toggleSourceEdit",
244 "desc" : "Toggles the editor between standard and source edit mode.",
245 "sig" : "(sourceEdit)",
249 "isConstructor" : false,
259 "name" : "sourceEdit",
261 "desc" : "(optional) True for source edit, false for standard",
268 "name" : "getDocMarkup",
270 "desc" : "Protected method that will not generally be called directly. It\nis called when the editor initializes the iframe with HTML contents. Override this method if you\nwant to change the initialization markup of the iframe (e.g. to add stylesheets).",
271 "sig" : "()\n{\n\n}",
275 "isConstructor" : false,
287 "name" : "iterateChildren",
289 "desc" : "iterateChildren of a Node, calling fn each time, using this as the scole..",
290 "sig" : "(node, fn)",
294 "isConstructor" : false,
306 "desc" : "node to iterate children of.",
312 "desc" : "method of this class to call on each item.",
319 "name" : "pushValue",
321 "desc" : "Protected method that will not generally be called directly. Pushes the value of the textarea\ninto the iframe editor.",
322 "sig" : "()\n{\n\n}",
326 "isConstructor" : false,
338 "name" : "rangeIntersectsNode",
340 "desc" : "Range intersection.. the hard stuff...\n '-1' = before\n '0' = hits..\n '1' = after.\n [ -- selected range --- ]\n [fail] [fail]\n\n basically..\n if end is before start or hits it. fail.\n if start is after end or hits it fail.\n\n if either hits (but other is outside. - then it's not",
341 "sig" : "()\n{\n\n}",
345 "isConstructor" : false,
357 "name" : "insertAtCursor",
359 "desc" : "Inserts the passed text at the current cursor position. Note: the editor must be initialized and activated\nto insert tRoo.",
364 "isConstructor" : false,
376 "desc" : "| dom node..",
385 "desc" : "Returns the id of this component.",
386 "sig" : "()\n{\n\n}",
388 "memberOf" : "Roo.Component",
390 "isConstructor" : false,
410 "desc" : "If this is a lazy rendering component, render it to its container element.",
411 "sig" : "(container)",
413 "memberOf" : "Roo.Component",
415 "isConstructor" : false,
425 "name" : "container",
426 "type" : "String/HTMLElement/Element",
427 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
436 "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.",
437 "sig" : "()\n{\n\n}",
439 "memberOf" : "Roo.Component",
441 "isConstructor" : false,
453 "name" : "isVisible",
455 "desc" : "Returns true if this component is visible.",
456 "sig" : "()\n{\n\n}",
458 "memberOf" : "Roo.Component",
460 "isConstructor" : false,
472 "name" : "setDisabled",
474 "desc" : "Convenience function for setting disabled/enabled by boolean.",
475 "sig" : "(disabled)",
477 "memberOf" : "Roo.Component",
479 "isConstructor" : false,
500 "desc" : "Hide this component.",
501 "sig" : "()\n{\n\n}",
503 "memberOf" : "Roo.Component",
505 "isConstructor" : false,
517 "type" : "Roo.Component",
525 "desc" : "Try to focus this component.",
526 "sig" : "(selectText)",
528 "memberOf" : "Roo.Component",
530 "isConstructor" : false,
540 "name" : "selectText",
542 "desc" : "True to also select the text in this component (if applicable)",
549 "type" : "Roo.Component",
557 "desc" : "Show this component.",
558 "sig" : "()\n{\n\n}",
560 "memberOf" : "Roo.Component",
562 "isConstructor" : false,
574 "type" : "Roo.Component",
582 "desc" : "Enable this component.",
583 "sig" : "()\n{\n\n}",
585 "memberOf" : "Roo.Component",
587 "isConstructor" : false,
599 "type" : "Roo.Component",
605 "name" : "setVisible",
607 "desc" : "Convenience function to hide or show this component by boolean.",
610 "memberOf" : "Roo.Component",
612 "isConstructor" : false,
624 "desc" : "True to show, false to hide",
631 "type" : "Roo.Component",
639 "desc" : "Disable this component.",
640 "sig" : "()\n{\n\n}",
642 "memberOf" : "Roo.Component",
644 "isConstructor" : false,
656 "type" : "Roo.Component",
664 "desc" : "Returns the underlying {@link Roo.Element}.",
665 "sig" : "()\n{\n\n}",
667 "memberOf" : "Roo.Component",
669 "isConstructor" : false,
681 "type" : "Roo.Element",
682 "desc" : "The element"
687 "name" : "purgeListeners",
689 "desc" : "Removes all listeners for this object",
690 "sig" : "()\n{\n\n}",
692 "memberOf" : "Roo.util.Observable",
694 "isConstructor" : false,
708 "desc" : "Appends an event handler to this element (shorthand for addListener)",
709 "sig" : "(eventName, handler, scope, options)",
711 "memberOf" : "Roo.util.Observable",
713 "isConstructor" : false,
723 "name" : "eventName",
725 "desc" : "The type of event to listen for",
731 "desc" : "The method the event invokes",
737 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
743 "desc" : "(optional)",
752 "desc" : "Removes a listener (shorthand for removeListener)",
753 "sig" : "(eventName, handler, scope)",
755 "memberOf" : "Roo.util.Observable",
757 "isConstructor" : false,
767 "name" : "eventName",
769 "desc" : "The type of event to listen for",
775 "desc" : "The handler to remove",
781 "desc" : "(optional) The scope (this object) for the handler",
788 "name" : "addEvents",
790 "desc" : "Used to define events on this Observable",
793 "memberOf" : "Roo.util.Observable",
795 "isConstructor" : false,
807 "desc" : "The object with the events defined",
814 "name" : "releaseCapture",
816 "desc" : "Removes <b>all</b> added captures from the Observable.",
819 "memberOf" : "Roo.util.Observable",
821 "isConstructor" : false,
832 "type" : "Observable",
833 "desc" : "The Observable to release",
840 "name" : "removeListener",
842 "desc" : "Removes a listener",
843 "sig" : "(eventName, handler, scope)",
845 "memberOf" : "Roo.util.Observable",
847 "isConstructor" : false,
857 "name" : "eventName",
859 "desc" : "The type of event to listen for",
865 "desc" : "The handler to remove",
871 "desc" : "(optional) The scope (this object) for the handler",
878 "name" : "fireEvent",
880 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
881 "sig" : "(eventName, args)",
883 "memberOf" : "Roo.util.Observable",
885 "isConstructor" : false,
895 "name" : "eventName",
902 "type" : "Object...",
903 "desc" : "Variable number of parameters are passed to handlers",
911 "desc" : "returns false if any of the handlers return false otherwise it returns true"
916 "name" : "hasListener",
918 "desc" : "Checks to see if this object has any listeners for a specified event",
919 "sig" : "(eventName)",
921 "memberOf" : "Roo.util.Observable",
923 "isConstructor" : false,
933 "name" : "eventName",
935 "desc" : "The name of the event to check for",
943 "desc" : "True if the event is being listened for, else false"
950 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
951 "sig" : "(o, fn, scope)",
953 "memberOf" : "Roo.util.Observable",
955 "isConstructor" : false,
966 "type" : "Observable",
967 "desc" : "The Observable to capture",
973 "desc" : "The function to call",
979 "desc" : "(optional) The scope (this object) for the fn",
986 "name" : "addListener",
988 "desc" : "Appends an event handler to this component",
989 "sig" : "(eventName, handler, scope, options)",
991 "memberOf" : "Roo.util.Observable",
993 "isConstructor" : false,
1003 "name" : "eventName",
1005 "desc" : "The type of event to listen for",
1006 "isOptional" : false
1010 "type" : "Function",
1011 "desc" : "The method the event invokes",
1012 "isOptional" : false
1017 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1018 "isOptional" : false
1023 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
1024 "isOptional" : false
1032 "name" : "specialkey",
1033 "type" : "function",
1035 "sig" : "function ()\n{\n\n}",
1045 "name" : "editorevent",
1046 "type" : "function",
1047 "desc" : "Fires when on any editor (mouse up/down cursor movement etc.) - used for toolbar hooks.",
1048 "sig" : "function (_self)\n{\n\n}",
1057 "type" : "Roo.HtmlEditorCore",
1059 "isOptional" : false
1065 "name" : "beforepush",
1066 "type" : "function",
1067 "desc" : "Fires before the iframe editor is updated with content from the textarea. Return false\nto cancel the push.",
1068 "sig" : "function (_self, html)\n{\n\n}",
1077 "type" : "Roo.HtmlEditorCore",
1079 "isOptional" : false
1085 "isOptional" : false
1091 "name" : "activate",
1092 "type" : "function",
1093 "desc" : "Fires when the editor is first receives the focus. Any insertion must wait\nuntil after this event.",
1094 "sig" : "function (_self)\n{\n\n}",
1103 "type" : "Roo.HtmlEditorCore",
1105 "isOptional" : false
1111 "name" : "initialize",
1112 "type" : "function",
1113 "desc" : "Fires when the editor is fully initialized (including the iframe)",
1114 "sig" : "function (_self)\n{\n\n}",
1123 "type" : "Roo.HtmlEditorCore",
1125 "isOptional" : false
1131 "name" : "beforesync",
1132 "type" : "function",
1133 "desc" : "Fires before the textarea is updated with content from the editor iframe. Return false\nto cancel the sync.",
1134 "sig" : "function (_self, html)\n{\n\n}",
1143 "type" : "Roo.HtmlEditorCore",
1145 "isOptional" : false
1151 "isOptional" : false
1158 "type" : "function",
1159 "desc" : "Fires when the iframe editor is updated with content from the textarea.",
1160 "sig" : "function (_self, html)\n{\n\n}",
1169 "type" : "Roo.HtmlEditorCore",
1171 "isOptional" : false
1177 "isOptional" : false
1184 "type" : "function",
1185 "desc" : "Fires when the textarea is updated with content from the editor iframe.",
1186 "sig" : "function (_self, html)\n{\n\n}",
1195 "type" : "Roo.HtmlEditorCore",
1197 "isOptional" : false
1203 "isOptional" : false
1210 "type" : "function",
1212 "sig" : "function ()\n{\n\n}",
1223 "type" : "function",
1225 "sig" : "function ()\n{\n\n}",
1236 "type" : "function",
1238 "sig" : "function ()\n{\n\n}",
1248 "name" : "beforerender",
1249 "type" : "function",
1250 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1251 "sig" : "function (_self)\n{\n\n}",
1252 "memberOf" : "Roo.Component",
1260 "type" : "Roo.Component",
1262 "isOptional" : false
1269 "type" : "function",
1270 "desc" : "Fires after the component is disabled.",
1271 "sig" : "function (_self)\n{\n\n}",
1272 "memberOf" : "Roo.Component",
1280 "type" : "Roo.Component",
1282 "isOptional" : false
1289 "type" : "function",
1290 "desc" : "Fires after the component is rendered.",
1291 "sig" : "function (_self)\n{\n\n}",
1292 "memberOf" : "Roo.Component",
1300 "type" : "Roo.Component",
1302 "isOptional" : false
1309 "type" : "function",
1310 "desc" : "Fires after the component is destroyed.",
1311 "sig" : "function (_self)\n{\n\n}",
1312 "memberOf" : "Roo.Component",
1320 "type" : "Roo.Component",
1322 "isOptional" : false
1329 "type" : "function",
1330 "desc" : "Fires after the component is hidden.",
1331 "sig" : "function (_self)\n{\n\n}",
1332 "memberOf" : "Roo.Component",
1340 "type" : "Roo.Component",
1342 "isOptional" : false
1348 "name" : "beforehide",
1349 "type" : "function",
1350 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1351 "sig" : "function (_self)\n{\n\n}",
1352 "memberOf" : "Roo.Component",
1360 "type" : "Roo.Component",
1362 "isOptional" : false
1369 "type" : "function",
1370 "desc" : "Fires after the component is shown.",
1371 "sig" : "function (_self)\n{\n\n}",
1372 "memberOf" : "Roo.Component",
1380 "type" : "Roo.Component",
1382 "isOptional" : false
1388 "name" : "beforeshow",
1389 "type" : "function",
1390 "desc" : "Fires before the component is shown. Return false to stop the show.",
1391 "sig" : "function (_self)\n{\n\n}",
1392 "memberOf" : "Roo.Component",
1400 "type" : "Roo.Component",
1402 "isOptional" : false
1409 "type" : "function",
1410 "desc" : "Fires after the component is enabled.",
1411 "sig" : "function (_self)\n{\n\n}",
1412 "memberOf" : "Roo.Component",
1420 "type" : "Roo.Component",
1422 "isOptional" : false
1428 "name" : "beforedestroy",
1429 "type" : "function",
1430 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1431 "sig" : "function (_self)\n{\n\n}",
1432 "memberOf" : "Roo.Component",
1440 "type" : "Roo.Component",
1442 "isOptional" : false