Skip to content

Instantly share code, notes, and snippets.

@kulamochi
kulamochi / ckeditor_config.js
Last active Jul 8, 2016
CKEditor customized example : 'config.js'
View ckeditor_config.js
CKEDITOR.editorConfig = function( config ) {
config.toolbar = [
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
'/',
{ name: 'links', items: [ 'Link', 'Unlink' ] },
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
'/',
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
{ name: 'insert', items: [ 'Table', 'HorizontalRule', 'SpecialChar'] },
@kulamochi
kulamochi / ckeditor_customconfig.js
Last active Jul 8, 2016
CKEditor customConfig setting
View ckeditor_customconfig.js
CKEDITOR.replace( 'editor', {
customConfig: '/path/to/ckeditor/config.js';
});
@kulamochi
kulamochi / ckeditor_via_cdn.html
Last active May 31, 2021
CKEditor CDN setup
View ckeditor_via_cdn.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CKEditor</title>
<script src="//cdn.ckeditor.com/4.5.9/standard/ckeditor.js"></script>
</head>
<body>
<textarea name="editor" class="ckeditor"></textarea>
<script>
@kulamochi
kulamochi / SC_SendMail_Ex.php
Created Jul 9, 2015
[EC-CUBE 2.13] CS_SendMail - overwrite sendmail path
View SC_SendMail_Ex.php
class SC_SendMail_Ex extends SC_SendMail
{
function getBackendParams($backend)
{
parent::getBackendParams($backend);
switch ($backend) {
case 'sendmail':
$arrParams = array(
'sendmail_path' => '/usr/sbin/sendmail',
'sendmail_args' => '-i',
@kulamochi
kulamochi / payment.tpl
Last active Aug 29, 2015
[EC-CUBE 2.13] Payment - selected radio button
View payment.tpl
<input type="radio" id="pay_<!--{$smarty.section.cnt.iteration}-->" name="<!--{$key}-->" value="<!--{$arrPayment[cnt].payment_id}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" <!--{$arrPayment[cnt].payment_id|sfGetChecked:$arrForm[$key].value}--> <!--{if !$arrPayment[cnt].payment_id|sfGetChecked:$arrForm[$key].value && $smarty.section.cnt.first}-->checked="checked"<!--{/if}--> />