How to use onKeyDown method in wpt

Best JavaScript code snippet using wpt

setup.js

Source:setup.js Github

copy

Full Screen

1/**2 * Magento3 *4 * NOTICE OF LICENSE5 *6 * This source file is subject to the Academic Free License (AFL 3.0)7 * that is bundled with this package in the file LICENSE_AFL.txt.8 * It is also available through the world-wide-web at this URL:9 * http://opensource.org/licenses/afl-3.0.php10 * If you did not receive a copy of the license and are unable to11 * obtain it through the world-wide-web, please send an email12 * to license@magento.com so we can send you a copy immediately.13 *14 * DISCLAIMER15 *16 * Do not edit or add to this file if you wish to upgrade Magento to newer17 * versions in the future. If you wish to customize Magento for your18 * needs please refer to http://www.magento.com for more information.19 *20 * @category Mage21 * @package Mage_Adminhtml22 * @copyright Copyright (c) 2006-2017 X.commerce, Inc. and affiliates (http://www.magento.com)23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)24 */25var tinyMceWysiwygSetup = Class.create();26tinyMceWysiwygSetup.prototype =27{28 mediaBrowserOpener: null,29 mediaBrowserTargetElementId: null,30 initialize: function(htmlId, config)31 {32 this.id = htmlId;33 this.config = config;34 varienGlobalEvents.attachEventHandler('tinymceChange', this.onChangeContent.bind(this));35 this.notifyFirebug();36 if(typeof tinyMceEditors == 'undefined') {37 tinyMceEditors = $H({});38 }39 tinyMceEditors.set(this.id, this);40 },41 notifyFirebug: function() {42 if (firebugEnabled() && $('fb' + this.id) == undefined) {43 var noticeHtml = '<ul class="messages message-firebug" id="fb' + this.id + '"><li class="notice-msg">';44 noticeHtml+= '<ul><li>';45 noticeHtml+= '<b>' + this.config.firebug_warning_title + ':</b> ';46 noticeHtml+= this.config.firebug_warning_text;47 noticeHtml+= ' <a id="hidefb' + this.id + '" href="">' + this.config.firebug_warning_anchor + '</a>';48 noticeHtml+= '</li></ul>';49 noticeHtml+= '</li></ul>';50 $('buttons' + this.id).insert({before: noticeHtml});51 Event.observe($('hidefb' + this.id), "click", function(e) {52 $('fb' + this.id).remove();53 Event.stop(e);54 }.bind(this));55 }56 },57 setup: function(mode)58 {59 if (this.config.widget_plugin_src) {60 tinymce.PluginManager.load('magentowidget', this.config.widget_plugin_src);61 }62 if (this.config.plugins) {63 (this.config.plugins).each(function(plugin){64 tinymce.PluginManager.load(plugin.name, plugin.src);65 });66 }67 tinyMCE.init(this.getSettings(mode));68 },69 getSettings: function(mode)70 {71 var plugins = 'inlinepopups,safari,pagebreak,style,layer,table,advhr,advimage,emotions,iespell,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras';72 if (this.config.widget_plugin_src) {73 plugins = 'magentowidget,' + plugins;74 }75 var magentoPluginsOptions = $H({});76 var magentoPlugins = '';77 if (this.config.plugins) {78 (this.config.plugins).each(function(plugin){79 magentoPlugins = plugin.name + ',' + magentoPlugins;80 magentoPluginsOptions.set(plugin.name, plugin.options);81 });82 if (magentoPlugins) {83 plugins = '-' + magentoPlugins + plugins;84 }85 }86 var settings = {87 schema : 'html5',88 valid_elements : ""89 +"a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name"90 +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"91 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev"92 +"|shape<circle?default?poly?rect|style|tabindex|title|target|type],"93 +"abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"94 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"95 +"|title],"96 +"acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress"97 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"98 +"|title],"99 +"address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"100 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"101 +"|onmouseup|style|title],"102 +"applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase"103 +"|height|hspace|id|name|object|style|title|vspace|width],"104 +"area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref"105 +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"106 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup"107 +"|shape<circle?default?poly?rect|style|tabindex|title|target],"108 +"base[href|target],"109 +"basefont[color|face|id|size],"110 +"bdo[class|dir<ltr?rtl|id|lang|style|title],"111 +"big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"112 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"113 +"|title],"114 +"blockquote[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick"115 +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"116 +"|onmouseover|onmouseup|style|title],"117 +"body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick"118 +"|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove"119 +"|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],"120 +"br[class|clear<all?left?none?right|id|style|title],"121 +"button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur"122 +"|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown"123 +"|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type"124 +"|value],"125 +"caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick"126 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"127 +"|onmouseout|onmouseover|onmouseup|style|title],"128 +"center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"129 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"130 +"|title],"131 +"cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"132 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"133 +"|title],"134 +"code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"135 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"136 +"|title],"137 +"col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"138 +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"139 +"|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title"140 +"|valign<baseline?bottom?middle?top|width],"141 +"colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl"142 +"|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"143 +"|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title"144 +"|valign<baseline?bottom?middle?top|width],"145 +"dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"146 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"147 +"del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"148 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"149 +"|onmouseup|style|title],"150 +"dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"151 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"152 +"|title],"153 +"dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"154 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"155 +"|onmouseup|style|title],"156 +"div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"157 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"158 +"|onmouseout|onmouseover|onmouseup|style|title],"159 +"dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"160 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"161 +"|onmouseup|style|title],"162 +"dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"163 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"164 +"em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"165 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"166 +"|title],"167 +"fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"168 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"169 +"|title],"170 +"font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],"171 +"form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang"172 +"|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup"173 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit"174 +"|style|title|target],"175 +"frame[class|frameborder|id|longdesc|marginheight|marginwidth|name"176 +"|noresize<noresize|scrolling<auto?no?yes|src|style|title],"177 +"frameset[class|cols|id|onload|onunload|rows|style|title],"178 +"h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"179 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"180 +"|onmouseout|onmouseover|onmouseup|style|title],"181 +"h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"182 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"183 +"|onmouseout|onmouseover|onmouseup|style|title],"184 +"h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"185 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"186 +"|onmouseout|onmouseover|onmouseup|style|title],"187 +"h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"188 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"189 +"|onmouseout|onmouseover|onmouseup|style|title],"190 +"h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"191 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"192 +"|onmouseout|onmouseover|onmouseup|style|title],"193 +"h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"194 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"195 +"|onmouseout|onmouseover|onmouseup|style|title],"196 +"head[dir<ltr?rtl|lang|profile],"197 +"hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick"198 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"199 +"|onmouseout|onmouseover|onmouseup|size|style|title|width],"200 +"html[dir<ltr?rtl|lang|version],"201 +"iframe[align<bottom?left?middle?right?top|class|frameborder|height|id"202 +"|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style"203 +"|title|width],"204 +"img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height"205 +"|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown"206 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"207 +"|onmouseup|src|style|title|usemap|vspace|width],"208 +"input[accept|accesskey|align<bottom?left?middle?right?top|alt"209 +"|checked<checked|class|dir<ltr?rtl|disabled<disabled|id|ismap<ismap|lang"210 +"|maxlength|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress"211 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect"212 +"|readonly<readonly|size|src|style|tabindex|title"213 +"|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text"214 +"|usemap|value],"215 +"ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"216 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"217 +"|onmouseup|style|title],"218 +"isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],"219 +"kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"220 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"221 +"|title],"222 +"label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick"223 +"|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"224 +"|onmouseover|onmouseup|style|title],"225 +"legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang"226 +"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"227 +"|onmouseout|onmouseover|onmouseup|style|title],"228 +"li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"229 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type"230 +"|value],"231 +"link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick"232 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"233 +"|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],"234 +"map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress"235 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"236 +"|title],"237 +"menu[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"238 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"239 +"|onmouseup|style|title],"240 +"meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],"241 +"noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"242 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"243 +"|title],"244 +"noscript[class|dir<ltr?rtl|id|lang|style|title],"245 +"object[align<bottom?left?middle?right?top|archive|border|class|classid"246 +"|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name"247 +"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"248 +"|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap"249 +"|vspace|width],"250 +"ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"251 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"252 +"|onmouseup|start|style|title|type],"253 +"optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick"254 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"255 +"|onmouseout|onmouseover|onmouseup|style|title],"256 +"option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick"257 +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"258 +"|onmouseover|onmouseup|selected<selected|style|title|value],"259 +"p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick"260 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"261 +"|onmouseout|onmouseover|onmouseup|style|title],"262 +"param[id|name|type|value|valuetype<DATA?OBJECT?REF],"263 +"pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick"264 +"|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"265 +"|onmouseover|onmouseup|style|title|width],"266 +"q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"267 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"268 +"|title],"269 +"s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"270 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"271 +"samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"272 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"273 +"|title],"274 +"script[charset|defer|language|src|type],"275 +"select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name"276 +"|onblur|onchange|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"277 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style"278 +"|tabindex|title],"279 +"small[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"280 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"281 +"|title],"282 +"span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"283 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"284 +"|onmouseup|style|title],"285 +"strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"286 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"287 +"|onmouseup|style|title],"288 +"strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"289 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"290 +"|title],"291 +"style[dir<ltr?rtl|lang|media|title|type],"292 +"sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"293 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"294 +"|title],"295 +"sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"296 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"297 +"|title],"298 +"table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class"299 +"|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress"300 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules"301 +"|style|summary|title|width],"302 +"tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id"303 +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"304 +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"305 +"|valign<baseline?bottom?middle?top],"306 +"td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"307 +"|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick"308 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"309 +"|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"310 +"|style|title|valign<baseline?bottom?middle?top|width],"311 +"textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name"312 +"|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"313 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect"314 +"|readonly<readonly|rows|style|tabindex|title],"315 +"tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"316 +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"317 +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"318 +"|valign<baseline?bottom?middle?top],"319 +"th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"320 +"|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick"321 +"|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"322 +"|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"323 +"|style|title|valign<baseline?bottom?middle?top|width],"324 +"thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id"325 +"|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown"326 +"|onmousemove|onmouseout|onmouseover|onmouseup|style|title"327 +"|valign<baseline?bottom?middle?top],"328 +"title[dir<ltr?rtl|lang],"329 +"tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class"330 +"|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"331 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"332 +"|title|valign<baseline?bottom?middle?top],"333 +"tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"334 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"335 +"u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup"336 +"|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"337 +"ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown"338 +"|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"339 +"|onmouseup|style|title|type],"340 +"var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress"341 +"|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"342 +"|title]",343 mode : (mode != undefined ? mode : 'none'),344 elements : this.id,345 theme : 'advanced',346 plugins : plugins,347 theme_advanced_buttons1 : magentoPlugins + 'magentowidget,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect',348 theme_advanced_buttons2 : 'cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor',349 theme_advanced_buttons3 : 'tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,ltr,rtl,|,fullscreen',350 theme_advanced_buttons4 : 'insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,pagebreak',351 theme_advanced_toolbar_location : 'top',352 theme_advanced_toolbar_align : 'left',353 theme_advanced_statusbar_location : 'bottom',354 theme_advanced_resizing : true,355 convert_urls : false,356 relative_urls : false,357 content_css: this.config.content_css,358 custom_popup_css: this.config.popup_css,359 magentowidget_url: this.config.widget_window_url,360 magentoPluginsOptions: magentoPluginsOptions,361 doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',362 setup : function(ed) {363 ed.onSubmit.add(function(ed, e) {364 varienGlobalEvents.fireEvent('tinymceSubmit', e);365 });366 ed.onPaste.add(function(ed, e, o) {367 varienGlobalEvents.fireEvent('tinymcePaste', o);368 });369 ed.onBeforeSetContent.add(function(ed, o) {370 varienGlobalEvents.fireEvent('tinymceBeforeSetContent', o);371 });372 ed.onSetContent.add(function(ed, o) {373 varienGlobalEvents.fireEvent('tinymceSetContent', o);374 });375 ed.onSaveContent.add(function(ed, o) {376 varienGlobalEvents.fireEvent('tinymceSaveContent', o);377 });378 ed.onChange.add(function(ed, l) {379 varienGlobalEvents.fireEvent('tinymceChange', l);380 });381 ed.onExecCommand.add(function(ed, cmd, ui, val) {382 varienGlobalEvents.fireEvent('tinymceExecCommand', cmd);383 });384 }385 };386 // Set the document base URL387 if (this.config.document_base_url) {388 settings.document_base_url = this.config.document_base_url;389 }390 if (this.config.files_browser_window_url) {391 settings.file_browser_callback = function(fieldName, url, objectType, w) {392 varienGlobalEvents.fireEvent("open_browser_callback", {win:w, type:objectType, field:fieldName});393 };394 }395 if (this.config.width) {396 settings.width = this.config.width;397 }398 if (this.config.height) {399 settings.height = this.config.height;400 }401 return settings;402 },403 openFileBrowser: function(o) {404 var typeTitle;405 var storeId = this.config.store_id !== null ? this.config.store_id : 0;406 var wUrl = this.config.files_browser_window_url +407 'target_element_id/' + this.id + '/' +408 'store/' + storeId + '/';409 this.mediaBrowserOpener = o.win;410 this.mediaBrowserTargetElementId = o.field;411 if (typeof(o.type) != 'undefined' && o.type != "") {412 typeTitle = 'image' == o.type ? this.translate('Insert Image...') : this.translate('Insert Media...');413 wUrl = wUrl + "type/" + o.type + "/";414 } else {415 typeTitle = this.translate('Insert File...');416 }417 MediabrowserUtility.openDialog(wUrl, false, false, typeTitle, {418 onBeforeShow: function(win) {419 win.element.setStyle({zIndex: 300200});420 }421 });422 },423 translate: function(string) {424 return 'undefined' != typeof(Translator) ? Translator.translate(string) : string;425 },426 getMediaBrowserOpener: function() {427 return this.mediaBrowserOpener;428 },429 getMediaBrowserTargetElementId: function() {430 return this.mediaBrowserTargetElementId;431 },432 getToggleButton: function() {433 return $('toggle' + this.id);434 },435 getPluginButtons: function() {436 return $$('#buttons' + this.id + ' > button.plugin');437 },438 turnOn: function() {439 this.closePopups();440 this.setup();441 tinyMCE.execCommand('mceAddControl', false, this.id);442 this.getPluginButtons().each(function(e) {443 e.hide();444 });445 },446 turnOff: function() {447 this.closePopups();448 tinyMCE.execCommand('mceRemoveControl', false, this.id);449 this.getPluginButtons().each(function(e) {450 e.show();451 });452 if (Prototype.Browser.IE) {453 // workaround for IE textarea redraw bug454 window.setTimeout(function() {455 if ($(this.id)) {456 $(this.id).value = $(this.id).value;457 }458 }.bind(this), 0);459 }460 },461 closePopups: function() {462 // close all popups to avoid problems with updating parent content area463 closeEditorPopup('widget_window' + this.id);464 closeEditorPopup('browser_window' + this.id);465 },466 toggle: function() {467 if (!tinyMCE.get(this.id)) {468 this.turnOn();469 return true;470 } else {471 this.turnOff();472 return false;473 }474 },475 onFormValidation: function() {476 if (tinyMCE.get(this.id)) {477 $(this.id).value = tinyMCE.get(this.id).getContent();478 }479 },480 onChangeContent: function() {481 // Add "changed" to tab class if it exists482 if(this.config.tab_id) {483 var tab = $$('a[id$=' + this.config.tab_id + ']')[0];484 if ($(tab) != undefined && $(tab).hasClassName('tab-item-link')) {485 $(tab).addClassName('changed');486 }487 }488 },489 // retrieve directives URL with substituted directive value490 makeDirectiveUrl: function(directive) {491 return this.config.directives_url.replace('directive', 'directive/___directive/' + directive);492 },493 encodeDirectives: function(content) {494 // collect all HTML tags with attributes that contain directives495 return content.gsub(/<([a-z0-9\-\_]+.+?)([a-z0-9\-\_]+=".*?\{\{.+?\}\}.*?".+?)>/i, function(match) {496 var attributesString = match[2];497 // process tag attributes string498 attributesString = attributesString.gsub(/([a-z0-9\-\_]+)="(.*?)(\{\{.+?\}\})(.*?)"/i, function(m) {499 return m[1] + '="' + m[2] + this.makeDirectiveUrl(Base64.mageEncode(m[3])) + m[4] + '"';500 }.bind(this));501 return '<' + match[1] + attributesString + '>';502 }.bind(this));503 },504 encodeWidgets: function(content) {505 return content.gsub(/\{\{widget(.*?)\}\}/i, function(match){506 var attributes = this.parseAttributesString(match[1]);507 if (attributes.type) {508 var placeholderFilename = attributes.type.replace(/\//g, "__") + ".gif";509 if (!this.widgetPlaceholderExist(placeholderFilename)) {510 placeholderFilename = 'default.gif';511 }512 var imageSrc = this.config.widget_images_url + placeholderFilename;513 var imageHtml = '<img';514 imageHtml+= ' id="' + Base64.idEncode(match[0]) + '"';515 imageHtml+= ' src="' + imageSrc + '"';516 imageHtml+= ' title="' + match[0].replace(/\{\{/g, '{').replace(/\}\}/g, '}').replace(/\"/g, '&quot;') + '"';517 imageHtml+= '>';518 return imageHtml;519 }520 }.bind(this));521 },522 decodeDirectives: function(content) {523 // escape special chars in directives url to use it in regular expression524 var url = this.makeDirectiveUrl('%directive%').replace(/([$^.?*!+:=()\[\]{}|\\])/g, '\\$1');525 var reg = new RegExp(url.replace('%directive%', '([a-zA-Z0-9,_-]+)'));526 return content.gsub(reg, function(match) {527 return Base64.mageDecode(match[1]);528 }.bind(this));529 },530 decodeWidgets: function(content) {531 return content.gsub(/<img([^>]+id=\"[^>]+)>/i, function(match) {532 var attributes = this.parseAttributesString(match[1]);533 if(attributes.id) {534 var widgetCode = Base64.idDecode(attributes.id);535 if (widgetCode.indexOf('{{widget') != -1) {536 return widgetCode;537 }538 return match[0];539 }540 return match[0];541 }.bind(this));542 },543 parseAttributesString: function(attributes) {544 var result = {};545 attributes.gsub(/(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/, function(match){546 result[match[1]] = match[2];547 });548 return result;549 },550 beforeSetContent: function(o) {551 if (this.config.add_widgets) {552 o.content = this.encodeWidgets(o.content);553 o.content = this.encodeDirectives(o.content);554 } else if (this.config.add_directives) {555 o.content = this.encodeDirectives(o.content);556 }557 },558 saveContent: function(o) {559 if (this.config.add_widgets) {560 o.content = this.decodeWidgets(o.content);561 o.content = this.decodeDirectives(o.content);562 } else if (this.config.add_directives) {563 o.content = this.decodeDirectives(o.content);564 }565 },566 widgetPlaceholderExist: function(filename) {567 return this.config.widget_placeholders.indexOf(filename) != -1;568 }...

Full Screen

Full Screen

validElements.js

Source:validElements.js Github

copy

Full Screen

1export const VALID_ELEMENTS = 'a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name'2 + '|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'3 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev'4 + '|shape<circle?default?poly?rect|style|tabindex|title|target|type],'5 + 'abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'6 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'7 + '|title],'8 + 'acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress'9 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'10 + '|title],'11 + 'address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'12 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'13 + '|onmouseup|style|title],'14 + 'applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase'15 + '|height|hspace|id|name|object|style|title|vspace|width],'16 + 'area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref'17 + '|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'18 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup'19 + '|shape<circle?default?poly?rect|style|tabindex|title|target],'20 + 'article[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'21 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'22 + '|title],'23 + 'aside[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'24 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'25 + '|title],'26 + 'audio[autoplay|class|controls|dir<ltr?rtl|id|lang|loop|onclick|ondblclick|onkeydown|onkeypress'27 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|preload|src|style'28 + '|title],'29 + 'base[href|target],'30 + 'basefont[color|face|id|size],'31 + 'bdo[class|dir<ltr?rtl|id|lang|style|title],'32 + 'big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'33 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'34 + '|title],'35 + 'blockquote[dir|style|cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick'36 + '|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'37 + '|onmouseover|onmouseup|style|title],'38 + 'body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick'39 + '|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove'40 + '|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],'41 + 'br[class|clear<all?left?none?right|id|style|title],'42 + 'button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur'43 + '|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown'44 + '|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type'45 + '|value],'46 + 'canvas[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'47 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'48 + '|title|width],'49 + 'caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick'50 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'51 + '|onmouseout|onmouseover|onmouseup|style|title],'52 + 'center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'53 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'54 + '|title],'55 + 'cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'56 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'57 + '|title],'58 + 'code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'59 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'60 + '|title],'61 + 'col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'62 + '|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'63 + '|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title'64 + '|valign<baseline?bottom?middle?top|width],'65 + 'colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl'66 + '|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'67 + '|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title'68 + '|valign<baseline?bottom?middle?top|width],'69 + 'command[class|dir<ltr?rtl|disabled|icon|id|label|lang|onclick|ondblclick|onkeydown|onkeypress'70 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'71 + '|title|type],'72 + 'datalist[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'73 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'74 + '|title],'75 + 'dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'76 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'77 + 'del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'78 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'79 + '|onmouseup|style|title],'80 + 'details[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'81 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|open|style'82 + '|title],'83 + 'dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'84 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'85 + '|title],'86 + 'dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'87 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'88 + '|onmouseup|style|title],'89 + 'div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'90 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'91 + '|onmouseout|onmouseover|onmouseup|style|title|role],'92 + 'dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'93 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'94 + '|onmouseup|style|title],'95 + 'dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'96 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'97 + 'em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'98 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'99 + '|title],'100 + 'embed[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'101 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style'102 + '|title|type|width],'103 + 'fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'104 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'105 + '|title],'106 + 'figcaption[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'107 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'108 + '|title],'109 + 'figure[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'110 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'111 + '|title],'112 + 'footer[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'113 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'114 + '|title],'115 + 'font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],'116 + 'form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang'117 + '|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup'118 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit'119 + '|style|title|target],'120 + 'frame[class|frameborder|id|longdesc|marginheight|marginwidth|name'121 + '|noresize<noresize|scrolling<auto?no?yes|src|style|title],'122 + 'frameset[class|cols|id|onload|onunload|rows|style|title],'123 + 'h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'124 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'125 + '|onmouseout|onmouseover|onmouseup|style|title],'126 + 'h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'127 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'128 + '|onmouseout|onmouseover|onmouseup|style|title],'129 + 'h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'130 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'131 + '|onmouseout|onmouseover|onmouseup|style|title],'132 + 'h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'133 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'134 + '|onmouseout|onmouseover|onmouseup|style|title],'135 + 'h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'136 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'137 + '|onmouseout|onmouseover|onmouseup|style|title],'138 + 'h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'139 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'140 + '|onmouseout|onmouseover|onmouseup|style|title],'141 + 'head[dir<ltr?rtl|lang|profile],'142 + 'header[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'143 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'144 + '|title],'145 + 'hgroup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'146 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'147 + '|title],'148 + 'hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick'149 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'150 + '|onmouseout|onmouseover|onmouseup|size|style|title|width],'151 + 'html[dir<ltr?rtl|lang|version],'152 + 'iframe[align<bottom?left?middle?right?top|class|frameborder|height|id'153 + '|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style'154 + '|title|width],'155 + 'img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height'156 + '|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown'157 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'158 + '|onmouseup|src|style|title|usemap|vspace|width|srcset|sizes],'159 + 'input[accept|accesskey|align<bottom?left?middle?right?top|alt|autocomplete|autofocus'160 + '|checked<checked|class|dir<ltr?rtl|disabled<disabled|form|id|ismap<ismap|lang|list'161 + '|max|maxlength|min|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress'162 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect'163 + '|pattern|placeholder|readonly<readonly|required<required|size|src|style|tabindex|title'164 + '|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text'165 + '?datetime?datetime-local?date?month?time?week?number?range?email?url?search?tel?color'166 + '|usemap|value],'167 + 'ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'168 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'169 + '|onmouseup|style|title],'170 + 'isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],'171 + 'kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'172 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'173 + '|title],'174 + 'keygen[autofocus|challenge|class|dir<ltr?rtl|disabled<disabled|form|id|keytype|lang|onclick|ondblclick|onkeydown|onkeypress'175 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'176 + '|title],'177 + 'label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick'178 + '|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'179 + '|onmouseover|onmouseup|style|title],'180 + 'legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang'181 + '|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'182 + '|onmouseout|onmouseover|onmouseup|style|title],'183 + 'li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'184 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type'185 + '|value],'186 + 'link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick'187 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'188 + '|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],'189 + 'map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress'190 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'191 + '|title],'192 + 'mark[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'193 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'194 + '|title],'195 + 'menu[class|compact<compact|dir<ltr?rtl|id|label|lang|onclick|ondblclick|onkeydown'196 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'197 + '|onmouseup|style|title|type],'198 + 'meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],'199 + 'meter[class|dir<ltr?rtl|high|id|lang|low|max|min|onclick|ondblclick|onkeydown|onkeypress'200 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|optimum|style'201 + '|title|value],'202 + 'nav[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'203 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'204 + '|title],'205 + 'noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'206 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'207 + '|title],'208 + 'noscript[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'209 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'210 + '|title],'211 + 'object[align<bottom?left?middle?right?top|archive|border|class|classid'212 + '|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name'213 + '|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'214 + '|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap'215 + '|vspace|width],'216 + 'ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'217 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'218 + '|onmouseup|start|style|title|type],'219 + 'optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick'220 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'221 + '|onmouseout|onmouseover|onmouseup|style|title],'222 + 'option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick'223 + '|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'224 + '|onmouseover|onmouseup|selected<selected|style|title|value],'225 + 'output[class|dir<ltr?rtl|for|form|id|lang|name|onclick|ondblclick|onkeydown|onkeypress'226 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'227 + '|title],'228 + 'p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'229 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'230 + '|onmouseout|onmouseover|onmouseup|style|title],'231 + 'param[id|name|type|value|valuetype<DATA?OBJECT?REF],'232 + 'pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick'233 + '|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'234 + '|onmouseover|onmouseup|style|title|width],'235 + 'progress[class|dir<ltr?rtl|id|lang|max|onclick|ondblclick|onkeydown|onkeypress'236 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'237 + '|title|value],'238 + 'q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'239 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'240 + '|title],'241 + 'rp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'242 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'243 + '|title],'244 + 'rt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'245 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'246 + '|title],'247 + 'ruby[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'248 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'249 + '|title],'250 + 's[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'251 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'252 + 'samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'253 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'254 + '|title],'255 + 'script[charset|defer|language|src|type],'256 + 'section[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'257 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'258 + '|title],'259 + 'select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name'260 + '|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'261 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style'262 + '|tabindex|title],'263 + 'small[class|dir<ltr?rtl|id|lang|media|onclick|ondblclick|onkeydown|onkeypress'264 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'265 + '|title],'266 + 'source[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'267 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style'268 + '|title|type],'269 + 'span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'270 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'271 + '|onmouseup|style|title],'272 + 'strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'273 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'274 + '|onmouseup|style|title],'275 + 'strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'276 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'277 + '|title],'278 + 'style[dir<ltr?rtl|lang|media|title|type],'279 + 'sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'280 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'281 + '|title],'282 + 'summary[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'283 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|open|style'284 + '|title],'285 + 'sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'286 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'287 + '|title],'288 + 'table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class'289 + '|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'290 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules'291 + '|style|summary|title|width],'292 + 'tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id'293 + '|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'294 + '|onmousemove|onmouseout|onmouseover|onmouseup|style|title'295 + '|valign<baseline?bottom?middle?top],'296 + 'td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class'297 + '|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick'298 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'299 + '|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup'300 + '|style|title|valign<baseline?bottom?middle?top|width],'301 + 'textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name'302 + '|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'303 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect'304 + '|readonly<readonly|rows|style|tabindex|title],'305 + 'tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'306 + '|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'307 + '|onmousemove|onmouseout|onmouseover|onmouseup|style|title'308 + '|valign<baseline?bottom?middle?top],'309 + 'th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class'310 + '|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick'311 + '|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'312 + '|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup'313 + '|style|title|valign<baseline?bottom?middle?top|width],'314 + 'thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'315 + '|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'316 + '|onmousemove|onmouseout|onmouseover|onmouseup|style|title'317 + '|valign<baseline?bottom?middle?top],'318 + 'time[class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'319 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|pubdate|style'320 + '|title],'321 + 'title[dir<ltr?rtl|lang],'322 + 'tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class'323 + '|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'324 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'325 + '|title|valign<baseline?bottom?middle?top],'326 + 'tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'327 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'328 + 'u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'329 + '|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'330 + 'ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'331 + '|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'332 + '|onmouseup|style|title|type],'333 + 'var[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'334 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style],'335 + 'video[autoplay|class|controls|dir<ltr?rtl|id|lang|loop|onclick|ondblclick|onkeydown|onkeypress'336 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|preload|poster|src|style'337 + '|title|width],'338 + 'wbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'339 + '|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'...

Full Screen

Full Screen

xconfig.js

Source:xconfig.js Github

copy

Full Screen

1/** 2This file is used by the MODx TinyMCE plugin to pass additional parameters to TinyMCE for processing.3*/4var tinymce_valid_elements = ''5+'a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name'6 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'7 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev'8 +'|shape<circle?default?poly?rect|style|tabindex|title|target|type],'9+'abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'10 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'11 +'|title],'12+'acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress'13 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'14 +'|title],'15+'address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'16 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'17 +'|onmouseup|style|title],'18+'applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase'19 +'|height|hspace|id|name|object|style|title|vspace|width],'20+'area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref'21 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'22 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup'23 +'|shape<circle?default?poly?rect|style|tabindex|title|target],'24+'article[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'25 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'26 +'|title],'27+'aside[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'28 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'29 +'|title],'30+'audio[autoplay|class|controls|dir<ltr?rtl|id|lang|loop|onclick|ondblclick|onkeydown|onkeypress'31 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|preload|src|style'32 +'|title],'33+'base[href|target],'34+'basefont[color|face|id|size],'35+'bdo[class|dir<ltr?rtl|id|lang|style|title],'36+'big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'37 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'38 +'|title],'39+'blockquote[dir|style|cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick'40 +'|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'41 +'|onmouseover|onmouseup|style|title],'42+'body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick'43 +'|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove'44 +'|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],'45+'br[class|clear<all?left?none?right|id|style|title],'46+'button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur'47 +'|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown'48 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type'49 +'|value],'50+'canvas[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'51 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'52 +'|title|width],'53+'caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick'54 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'55 +'|onmouseout|onmouseover|onmouseup|style|title],'56+'center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'57 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'58 +'|title],'59+'cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'60 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'61 +'|title],'62+'code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'63 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'64 +'|title],'65+'col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'66 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'67 +'|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title'68 +'|valign<baseline?bottom?middle?top|width],'69+'colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl'70 +'|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'71 +'|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title'72 +'|valign<baseline?bottom?middle?top|width],'73+'command[class|dir<ltr?rtl|disabled|icon|id|label|lang|onclick|ondblclick|onkeydown|onkeypress'74 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'75 +'|title|type],'76+'datalist[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'77 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'78 +'|title],'79+'dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'80 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'81+'del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'82 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'83 +'|onmouseup|style|title],'84+'details[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'85 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|open|style'86 +'|title],'87+'dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'88 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'89 +'|title],'90+'dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'91 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'92 +'|onmouseup|style|title],'93+'div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'94 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'95 +'|onmouseout|onmouseover|onmouseup|style|title],'96+'dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'97 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'98 +'|onmouseup|style|title],'99+'dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'100 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'101+'em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'102 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'103 +'|title],'104+'embed[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'105 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style'106 +'|title|type|width],'107+'fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'108 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'109 +'|title],'110+'figcaption[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'111 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'112 +'|title],'113+'figure[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'114 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'115 +'|title],'116+'footer[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'117 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'118 +'|title],'119+'font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],'120+'form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang'121 +'|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup'122 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit'123 +'|style|title|target],'124+'frame[class|frameborder|id|longdesc|marginheight|marginwidth|name'125 +'|noresize<noresize|scrolling<auto?no?yes|src|style|title],'126+'frameset[class|cols|id|onload|onunload|rows|style|title],'127+'h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'128 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'129 +'|onmouseout|onmouseover|onmouseup|style|title],'130+'h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'131 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'132 +'|onmouseout|onmouseover|onmouseup|style|title],'133+'h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'134 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'135 +'|onmouseout|onmouseover|onmouseup|style|title],'136+'h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'137 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'138 +'|onmouseout|onmouseover|onmouseup|style|title],'139+'h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'140 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'141 +'|onmouseout|onmouseover|onmouseup|style|title],'142+'h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'143 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'144 +'|onmouseout|onmouseover|onmouseup|style|title],'145+'head[dir<ltr?rtl|lang|profile],'146+'header[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'147 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'148 +'|title],'149+'hgroup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'150 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'151 +'|title],'152+'hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick'153 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'154 +'|onmouseout|onmouseover|onmouseup|size|style|title|width],'155+'html[dir<ltr?rtl|lang|version],'156+'iframe[align<bottom?left?middle?right?top|class|frameborder|height|id'157 +'|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style'158 +'|title|width],'159+'img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height'160 +'|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown'161 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'162 +'|onmouseup|src|style|title|usemap|vspace|width],'163+'input[accept|accesskey|align<bottom?left?middle?right?top|alt|autocomplete|autofocus'164 +'|checked<checked|class|dir<ltr?rtl|disabled<disabled|form|id|ismap<ismap|lang|list'165 +'|max|maxlength|min|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress'166 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect'167 +'|pattern|placeholder|readonly<readonly|required<required|size|src|style|tabindex|title'168 +'|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text'169 +'?datetime?datetime-local?date?month?time?week?number?range?email?url?search?tel?color'170 +'|usemap|value],'171+'ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'172 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'173 +'|onmouseup|style|title],'174+'isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],'175+'kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'176 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'177 +'|title],'178+'keygen[autofocus|challenge|class|dir<ltr?rtl|disabled<disabled|form|id|keytype|lang|onclick|ondblclick|onkeydown|onkeypress'179 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'180 +'|title],'181+'label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick'182 +'|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'183 +'|onmouseover|onmouseup|style|title],'184+'legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang'185 +'|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'186 +'|onmouseout|onmouseover|onmouseup|style|title],'187+'li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'188 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type'189 +'|value],'190+'link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick'191 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'192 +'|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],'193+'map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress'194 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'195 +'|title],'196+'mark[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'197 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'198 +'|title],'199+'menu[class|compact<compact|dir<ltr?rtl|id|label|lang|onclick|ondblclick|onkeydown'200 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'201 +'|onmouseup|style|title|type],'202+'meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],'203+'meter[class|dir<ltr?rtl|high|id|lang|low|max|min|onclick|ondblclick|onkeydown|onkeypress'204 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|optimum|style'205 +'|title|value],'206+'nav[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'207 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'208 +'|title],'209+'noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'210 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'211 +'|title],'212+'noscript[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'213 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'214 +'|title],'215+'object[align<bottom?left?middle?right?top|archive|border|class|classid'216 +'|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name'217 +'|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'218 +'|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap'219 +'|vspace|width],'220+'ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'221 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'222 +'|onmouseup|start|style|title|type],'223+'optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick'224 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'225 +'|onmouseout|onmouseover|onmouseup|style|title],'226+'option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick'227 +'|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'228 +'|onmouseover|onmouseup|selected<selected|style|title|value],'229+'output[class|dir<ltr?rtl|for|form|id|lang|name|onclick|ondblclick|onkeydown|onkeypress'230 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'231 +'|title],'232+'p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'233 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'234 +'|onmouseout|onmouseover|onmouseup|style|title],'235+'param[id|name|type|value|valuetype<DATA?OBJECT?REF],'236+'pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick'237 +'|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'238 +'|onmouseover|onmouseup|style|title|width],'239+'progress[class|dir<ltr?rtl|id|lang|max|onclick|ondblclick|onkeydown|onkeypress'240 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'241 +'|title|value],'242+'q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'243 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'244 +'|title],'245+'rp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'246 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'247 +'|title],'248+'rt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'249 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'250 +'|title],'251+'ruby[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'252 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'253 +'|title],'254+'s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'255 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'256+'samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'257 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'258 +'|title],'259+'script[charset|defer|language|src|type],'260+'section[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'261 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'262 +'|title],'263+'select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name'264 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'265 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style'266 +'|tabindex|title],'267+'small[class|dir<ltr?rtl|id|lang|media|onclick|ondblclick|onkeydown|onkeypress'268 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'269 +'|title],'270+'source[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'271 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style'272 +'|title|type],'273+'span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'274 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'275 +'|onmouseup|style|title],'276+'strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'277 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'278 +'|onmouseup|style|title],'279+'strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'280 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'281 +'|title],'282+'style[dir<ltr?rtl|lang|media|title|type],'283+'sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'284 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'285 +'|title],'286+'summary[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'287 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|open|style'288 +'|title],'289+'sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'290 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'291 +'|title],'292+'table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class'293 +'|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'294 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules'295 +'|style|summary|title|width],'296+'tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id'297 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'298 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|title'299 +'|valign<baseline?bottom?middle?top],'300+'td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class'301 +'|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick'302 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'303 +'|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup'304 +'|style|title|valign<baseline?bottom?middle?top|width],'305+'textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name'306 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'307 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect'308 +'|readonly<readonly|rows|style|tabindex|title],'309+'tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'310 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'311 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|title'312 +'|valign<baseline?bottom?middle?top],'313+'th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class'314 +'|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick'315 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'316 +'|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup'317 +'|style|title|valign<baseline?bottom?middle?top|width],'318+'thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'319 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'320 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|title'321 +'|valign<baseline?bottom?middle?top],'322+'time[class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'323 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|pubdate|style'324 +'|title],'325+'title[dir<ltr?rtl|lang],'326+'tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class'327 +'|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'328 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'329 +'|title|valign<baseline?bottom?middle?top],'330+'tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'331 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'332+'u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'333 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'334+'ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'335 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'336 +'|onmouseup|style|title|type],'337+'var[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'338 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style],'339+'video[autoplay|class|controls|dir<ltr?rtl|id|lang|loop|onclick|ondblclick|onkeydown|onkeypress'340 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|preload|poster|src|style'341 +'|title|width],'342+'wbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'343 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'344 +'|title]'345var tinymce_extended_valid_elements = "";...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptoolkit = require('wptoolkit');2var wp = new wptoolkit();3 if(err) throw err;4 wp.onKeyDown(10, function(err, res) {5 if(err) throw err;6 });7});8var wptoolkit = require('wptoolkit');9var wp = new wptoolkit();10 if(err) throw err;11 wp.onKeyUp(10, function(err, res) {12 if(err) throw err;13 });14});15var wptoolkit = require('wptoolkit');16var wp = new wptoolkit();17 if(err) throw err;18 wp.onKeyEnter(10, function(err, res) {19 if(err) throw err;20 });21});22var wptoolkit = require('wptoolkit');23var wp = new wptoolkit();24 if(err) throw err;25 wp.onKeyBack(10, function(err, res) {26 if(err) throw err;27 });28});29var wptoolkit = require('wptoolkit');30var wp = new wptoolkit();31 if(err) throw err

Full Screen

Using AI Code Generation

copy

Full Screen

1function test() {2 var text = document.getElementById("wpTextbox1");3 var e = text.contentDocument;4 e.addEventListener("keydown", function (event) {5 if (event.keyCode == 13) {6 alert("You pressed enter!");7 }8 });9}10window.addEventListener("load", test);11function test() {12 var text = document.getElementById("wpTextbox1");13 var e = text.contentDocument;14 e.addEventListener("keydown", function (event) {15 if (event.keyCode == 13) {16 alert("You pressed enter!");17 }18 });19}20window.addEventListener("load", test);21function test() {22 var text = document.getElementById("wpTextbox1");23 var e = text.contentDocument;24 e.addEventListener("keydown", function (event) {25 if (event.keyCode == 13) {26 alert("You pressed enter!");27 }28 });29}30window.addEventListener("load", test);31function test() {32 var text = document.getElementById("wpTextbox1");33 var e = text.contentDocument;34 e.addEventListener("keydown", function (event) {35 if (event.keyCode == 13) {

Full Screen

Using AI Code Generation

copy

Full Screen

1var p = new WPTK.Path();2p.onKeyDown = function(event) {3 console.log("key pressed");4}5### Path.onKeyUp(event)6var p = new WPTK.Path();7p.onKeyUp = function(event) {8 console.log("key released");9}10### Path.onMouseDown(event)11var p = new WPTK.Path();12p.onMouseDown = function(event) {13 console.log("mouse button pressed");14}15### Path.onMouseUp(event)16var p = new WPTK.Path();17p.onMouseUp = function(event) {18 console.log("mouse button released");19}20### Path.onMouseMove(event)21var p = new WPTK.Path();22p.onMouseMove = function(event) {23 console.log("mouse moved");24}25### Path.onMouseDrag(event)26var p = new WPTK.Path();27p.onMouseDrag = function(event) {28 console.log("mouse dragged");29}30### Path.onMouseWheel(event)31var p = new WPTK.Path();32p.onMouseWheel = function(event) {33 console.log("mouse wheel scrolled");34}35### Path.onFrame(event)36var p = new WPTK.Path();37p.onFrame = function(event) {38 console.log("

Full Screen

Using AI Code Generation

copy

Full Screen

1function testKeyDown(){2 var e = new Object();3 e.keyCode = 37;4 wpt.onKeyDown(e);5}6function testKeyUp(){7 var e = new Object();8 e.keyCode = 37;9 wpt.onKeyUp(e);10}11function testKeyUp(){12 var e = new Object();13 e.keyCode = 37;14 wpt.onKeyUp(e);15}16function testKeyUp(){17 var e = new Object();18 e.keyCode = 37;19 wpt.onKeyUp(e);20}21function testKeyUp(){22 var e = new Object();23 e.keyCode = 37;24 wpt.onKeyUp(e);25}26function testKeyUp(){27 var e = new Object();28 e.keyCode = 37;29 wpt.onKeyUp(e);30}31function testKeyUp(){32 var e = new Object();33 e.keyCode = 37;34 wpt.onKeyUp(e);35}36function testKeyUp(){37 var e = new Object();38 e.keyCode = 37;

Full Screen

Using AI Code Generation

copy

Full Screen

1function onKeyDown(event) {2}3var WpTool = function() {4 this.onKeyDown = function(event) {5 if (event.key == 'a') {6 console.log('a');7 }8 }9}10function onKeyDown(event) {11}12var WpTool = function() {13 this.onKeyDown = function(event) {14 if (event.key == 'a') {15 console.log('a');16 }17 if (event.key == 'b') {18 console.log('b');19 }20 }21}22function onKeyDown(event) {23}24var WpTool = function() {25 this.onKeyDown = function(event) {26 if (event.key == 'a') {27 console.log('a');28 }

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful