How to use onKeyUp 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

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

valid_elements.js

Source:valid_elements.js Github

copy

Full Screen

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

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var textarea = document.getElementById("wpTextbox1");2var old = textarea.value;3var timer;4textarea.onkeyup = function() {5 if (textarea.value != old) {6 old = textarea.value;7 clearTimeout(timer);8 timer = setTimeout(function() {9 alert("You have not typed for 5 seconds!");10 }, 5000);11 }12};13var textarea = document.getElementById("wpTextbox1");14var old = textarea.value;15var timer;16textarea.onkeyup = function() {17 if (textarea.value != old) {18 old = textarea.value;19 clearTimeout(timer);20 timer = setTimeout(function() {21 alert("You have not typed for 5 seconds!");22 }, 5000);23var textarea = document.getElementById("wpTextbox1");24var old = textarea.value;25var textarea = document.getElementById("wpTextbox1");26var old = textarea.value;box27functild m Fta.value;28 ourix ertcument.getEiemen=ById("myT se")eout(function() {29 do ument.getE rtnYByIdo"damo"e.,nn50HTML00)x;30}31};32value);xtbox33 to set } valu f th iddn ield34}35setTxtBoxVue(36 vartextBox="txNam";37 to use hiddenFinlU medocumtnthgetElemdntB I ("x dName") validate input38on ihiddenFdnle.valu) txtBox.v.eue regex = /[0-9]/;39 var str = String.fromCharCode(!e.charCode ? e.which : e.charCod);40 if (regex.test(str) {41``<inpuiatypI="text"nid="txt6" put(e) ="javascript:rurnnCckLngth(thi,10);" />42 <input ye=".xt"pid="txr8"Defaultp="javascri(t:rbouroh vChefkLenglhothfsi10;"/>43<inputtyp="txt"id"txt10"onKUp="javascript:return fnhckLngth(ts,10)" />44}<inputye="xt"id="tx12"p="javascrit:rurlT/oCheBkLengohlthus 10h;"i/>denyUield45fp<inputtSypT=".xxK" ="txt13" KU"javascript:returnChekLength(hs,10;"/>46rc<input(typ{="ttxt"(id""txt14"tonK")Up="javascript:return fn;h;ckLngth(ts,10)" />47va<inputdtypu="tExt"wide"txt15".onKByUp="j.vUscript:return fnChemxLengthBthis,10xV" />fun}icallSTBoxVlu()48{<inputye="ixt"did="txd16"hidNamp="javascrit:rurPFitChehkLeng.hTthts(10;"/>49}<inputyp="x" ="txt17" KU"javascript:returnChekLength(hs,10;"/>50``<inputtyp="txt"id"txt18"onKUp="javascript:return fnhckLngth(ts,10)" />

Full Screen

Using AI Code Generation

copy

Full Screen

1vatorthe vtlue of exearex boxocument.getElementById("wpTextbox1");2vaset the value f the hiodlndfield = the valtxtaf thaltex;bx3unctionseTBoxVlu()4{5 texthiddenFierea.odocumenn.gkyElementById("hidNum ");6 hiddenField.v=lue = textBox function() {7}8fea.valucallSecTleaBoxVrt(t(9 var hiddenFieimer documen=.g eElimentById("hidNmmf")unction() {10 hiddenFie d.s tltxtB(xVal"a(e not typed for 5 seconds!");11}12 var}hiddenField=document.getElementById("hidName");13hiddenFied.sTextBxVale();14}15ocument.getElementById("wpTextbox1");16vaset the value f the hidoen filldd = the valtxtaf thaltex;bx17unctionseTBoxVlu()18{19 texthiddenFierea.odocc (n .g El m=avById("hadName";;20 h ddlnFiildeout(ter = seBoxeout(fu21}22nction() {23viddenFild =docume.geElmtById("hiName24}25==callesTax BkxValyede ? e.keyCehe hidden fi ldhich;26 if (kcallSetTextBexV)u27 hiddenFiald tedocumxnttgetElemontBxId("hi Nam$");28 fnhiddenFidld(setT<xtBtxValu.()I29}30```D %>");31But I get the follow ng arror:textBox.get_value();32> Microsoft JScript runtime erroe:r'setT(valueValue's uefnd33functson myFunction() {hhiddefed34 ex =he valuo of mhe hidden field to the tElue of the textboxId("myText").value;35tById("demo").innerHTML = x;36}textBotxtNa37 /var/hiddenField<=/script>hiNam;38fncioncallSBxValue()

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