Skip to content

Instantly share code, notes, and snippets.

@steelydylan
Created April 11, 2017 05:49
Show Gist options
  • Save steelydylan/32b06f642023ff26a7be263ec18d044c to your computer and use it in GitHub Desktop.
Save steelydylan/32b06f642023ff26a7be263ec18d044c to your computer and use it in GitHub Desktop.
tableのUIをカスタムフィールドで使うためのカスタマイズ
<div class="js-field">
<div class="js-editable-table">
<!-- BEGIN_IF [{table}[delnl]/nem] -->
{table}[raw]
<!-- ELSE -->
<table>
<tr>
<th>hogehoge</th>
<th>hogehoge</th>
</tr>
<tr>
<td>hogehoge</td>
<td>hogehoge</td>
</tr>
</table>
<!-- END_IF -->
<input type="hidden" class="js-editable-table-dest" value="{table}" name="table">
<input type="hidden" name="field[]" value="table">
</div>
</div>
<script>
ACMS.Ready(function(){
ACMS.Library.aTableEdit(document.querySelector('.js-field'));
});
</script>
@steelydylan
Copy link
Author

a-blog cms Ver.2.7.0から利用できます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment