Sha256: 98a6fece82cb392a55529a55236a26c040a6ebf57f749e2f4077f82780d7900f
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <style type="text/css"> * { color: #838383; margin: 0; padding: 0 } html, body { font-size: 12px; overflow: hidden; } .content { padding: 5px 0 0 15px; } input { width: 210px; height: 21px; line-height: 21px; margin-left: 4px; } </style> </head> <body> <div class="content"> <span><var id="lang_input_anchorName"></var></span><input id="anchorName" value=""/> </div> <%= javascript_include_tag 'ueditor/dialogs/internal.js' %> <script type="text/javascript"> var anchorInput = $G('anchorName'), node = editor.selection.getRange().getClosedNode(); if (node && node.tagName == 'IMG' && (node = node.getAttribute('anchorname'))) { anchorInput.value = node; } anchorInput.onkeydown = function (evt) { evt = evt || window.event; if (evt.keyCode == 13) { editor.execCommand('anchor', anchorInput.value); dialog.close(); domUtils.preventDefault(evt) } }; dialog.onok = function () { editor.execCommand('anchor', anchorInput.value); dialog.close(); }; $focus(anchorInput); </script> </body> </html>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ueditor_rails4-0.0.5 | vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html.erb |
ueditor_rails-0.0.4 | vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html.erb |