{I" class:ETI"ProcessedAsset;FI"logical_path;TI")tinymce/themes/advanced/js/anchor.js;TI" pathname;TI"{D:/Ruby215/lib/ruby/gems/2.1.0/gems/tinymce-rails-3.5.9/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js;TI"content_type;TI"application/javascript;TI" mtime;Tl+щçTI" length;Ti¢I" digest;TI"%31ffe5cf592733819f7982165a7f7924;FI" source;TI"¢tinyMCEPopup.requireLangPack(); var AnchorDialog = { init : function(ed) { var action, elm, f = document.forms[0]; this.editor = ed; elm = ed.dom.getParent(ed.selection.getNode(), 'A'); v = ed.dom.getAttrib(elm, 'name') || ed.dom.getAttrib(elm, 'id'); if (v) { this.action = 'update'; f.anchorName.value = v; } f.insert.value = ed.getLang(elm ? 'update' : 'insert'); }, update : function() { var ed = this.editor, elm, name = document.forms[0].anchorName.value, attribName; if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) { tinyMCEPopup.alert('advanced_dlg.anchor_invalid'); return; } tinyMCEPopup.restoreSelection(); if (this.action != 'update') ed.selection.collapse(1); var aRule = ed.schema.getElementRule('a'); if (!aRule || aRule.attributes.name) { attribName = 'name'; } else { attribName = 'id'; } elm = ed.dom.getParent(ed.selection.getNode(), 'A'); if (elm) { elm.setAttribute(attribName, name); elm[attribName] = name; ed.undoManager.add(); } else { // create with zero-sized nbsp so that in Webkit where anchor is on last line by itself caret cannot be placed after it var attrs = {'class' : 'mceItemAnchor'}; attrs[attribName] = name; ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', attrs, '\uFEFF')); ed.nodeChanged(); } tinyMCEPopup.close(); } }; tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog); ;TI"dependency_digest;TI"%b6b4ce0b3d48f78b9f10fc996c884772;FI"required_paths;T[I"{D:/Ruby215/lib/ruby/gems/2.1.0/gems/tinymce-rails-3.5.9/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js;TI"dependency_paths;T[{I" path;TI"{D:/Ruby215/lib/ruby/gems/2.1.0/gems/tinymce-rails-3.5.9/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js;TI" mtime;TI"2015-02-20T21:24:01+02:00;TI" digest;TI"%ab5c7c19304570379045af944a14a8ce;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F