obj/Release/Package/PackageTmp/docs/sections/custom/inline-editable.html
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<section>
<h1 class="blue" data-id="#custom/inline-editable"><i class="ace-icon fa fa-desktop grey"></i> Inline Editable Addons</h1>
<div class="hr hr-double hr32"></div>
<!-- #section:custom/inline-editable -->
<div class="help-content">
<h3 class="info-title smaller">Overview</h3>
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Based on <a href="#plugins/misc.inline-editable">Inline editable</a> plugin,
five additional editables have been defined which you can use by including
the following scripts:
<pre data-language="html">
<script src="assets/js/x-editable/bootstrap-editable.min.js" />
<script src="assets/js/x-editable/ace-editable.min.js" />
</pre>
</li>
</ul>
</div>
<h3 class="info-title smaller" data-id="#custom/inline-editable.image">Image editable</h3>
<!-- #section:custom/inline-editable.image -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Image editable is based on <a href="#custom/file-input" class="help-more">custom file input</a>
</li>
<li>
You should do some extra work for uploading the image.
<br />
A working example is available at <code>examples/profile-update.html</code>.
<br />
The backend (server side) code is written in PHP at <code>examples/file-upload.php</code>.
</li>
<li>
Inside <code>image</code> parapmeter which takes custom file input options,
there is also <code>on_error</code> and <code>on_success</code> callbacks that are called
when an invalid file is selected or if files are successfully selected.
</li>
<li>
An example of image editable's usage:
<pre data-language="javascript">
//first let's add a fake appendChild for Image element for browsers that have a problem with this
//because it seems that editable plugin calls appendChild, and it causes errors on IE at unpredicted points
try {
document.createElement('IMG').appendChild(document.createElement('B'));
} catch(e) {
Image.prototype.appendChild = function(el){}
}
$('#avatar').editable({
type: 'image',
name: 'avatar',
后面还有 190 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
