73 lines
2.5 KiB
HTML
73 lines
2.5 KiB
HTML
|
|
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
||
|
|
|
||
|
|
|
||
|
|
<script>
|
||
|
|
|
||
|
|
tinymce.init({
|
||
|
|
selector: 'textarea#info-desc',
|
||
|
|
height: 350,
|
||
|
|
menubar: true,
|
||
|
|
plugins: [
|
||
|
|
'advlist autolink lists link image charmap print preview anchor',
|
||
|
|
'searchreplace visualblocks code fullscreen',
|
||
|
|
'insertdatetime media table paste code help wordcount'
|
||
|
|
],
|
||
|
|
toolbar: 'undo redo | formatselect | ' +
|
||
|
|
'bold italic backcolor | alignleft aligncenter ' +
|
||
|
|
'alignright alignjustify | bullist numlist outdent indent | ' +
|
||
|
|
'removeformat | help',
|
||
|
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
tinymce.init({
|
||
|
|
selector: 'textarea#contact-desc',
|
||
|
|
height: 350,
|
||
|
|
menubar: true,
|
||
|
|
plugins: [
|
||
|
|
'advlist autolink lists link image charmap print preview anchor',
|
||
|
|
'searchreplace visualblocks code fullscreen',
|
||
|
|
'insertdatetime media table paste code help wordcount'
|
||
|
|
],
|
||
|
|
toolbar: 'undo redo | formatselect | ' +
|
||
|
|
'bold italic backcolor | alignleft aligncenter ' +
|
||
|
|
'alignright alignjustify | bullist numlist outdent indent | ' +
|
||
|
|
'removeformat | help',
|
||
|
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</script>
|
||
|
|
|
||
|
|
|
||
|
|
<script>
|
||
|
|
var $tb_setting = $('#js-tb-settings');
|
||
|
|
var current_index = $tb_setting.find("tr").length - 1;
|
||
|
|
var $row_tpl = `
|
||
|
|
<tr>
|
||
|
|
<td>{index}</td>
|
||
|
|
<td>
|
||
|
|
<input name="" id="" placeholder="0"
|
||
|
|
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]" />
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<input name="" id="" placeholder="0"
|
||
|
|
class="w-[100%] border-[1px] border-[#D8D8D8] py-[6px] px-[10px] rounded-[4px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12)] mr-[10px]" />
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<a href=""
|
||
|
|
class="w-[30px] h-[30px] border-[1px] border-[#9E9E9E] rounded-[4px] text-center leading-[30px] flex items-center justify-center m-auto">
|
||
|
|
<i class="icons icon-remove"></i>
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
`;
|
||
|
|
|
||
|
|
function add_form_setting() {
|
||
|
|
current_index += 1;
|
||
|
|
$tb_setting.append($row_tpl.replace(/{index}/g, current_index));
|
||
|
|
}
|
||
|
|
|
||
|
|
</script>
|