Перейти к содержанию
  • Добавьте кнопки загрузки файлов на ваш CKEditor


    Silence

    Добавьте кнопки загрузки файлов на ваш CKEditor

    sfsz.png

    mfddr.png

    Перейти к ACP > Customization > Themes > Your theme >edit HTML and CSS > core > global > forms > editorAttachments  и найти:

    <li class='ipsPos_right ipsResponsive_noFloat'>

    после этого, вставьте этот код:

    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><a href="" onClick="javascript:window.open('https://mediafire.com','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> MediaFire</a></span>
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><a href="" onClick="javascript:window.open('http://filedropper.com','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> FileDropper</a></span>
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><a href="" onClick="javascript:window.open('http://www.tinyupload.com/','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> TinyUpload</a></span>

    Сохранить

    Перейти к CSS > custom.css и вставить этот код:

    .uploadfile a:link {
          text-decoration: none;
          color: #333;
          transition: all 0.5s ease;
    }
    .uploadfile a:visited {
          text-decoration: none;
          color: #333;
          transition: all 0.5s ease;
    }

    Сохранить

    Вы можете разместить ссылки на свой вкус

    наслаждаться ;)


    Обратная связь

    Рекомендуемые комментарии

    В 31.01.2017 г. в 06:34, BlackRouter сказал:

    thank you!!

    but i click on button and open pop up Current page refreshing.

    fixed:

    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><button onClick="javascript:window.open('https://mediafire.com','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> MediaFire</button></span>
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><button onClick="javascript:window.open('http://filedropper.com','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> FileDropper</button></span>
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><button onClick="javascript:window.open('http://www.tinyupload.com/','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> TinyUpload</button></span>
                              
                              
              
    .uploadfile button:link {
          text-decoration: none;
          color: #333;
          transition: all 0.5s ease;
    }
    .uploadfile button:visited {
          text-decoration: none;
          color: #333;
          transition: all 0.5s ease;
    }

     

    Ссылка на комментарий
    Поделиться на другие сайты

    В 24.03.2017 в 16:46, Silence сказал:

    fixed:

    
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><button onClick="javascript:window.open('https://mediafire.com','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> MediaFire</button></span>
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><button onClick="javascript:window.open('http://filedropper.com','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> FileDropper</button></span>
    <span class="uploadfile ipsButton ipsButton_light ipsButton_verySmall"><button onClick="javascript:window.open('http://www.tinyupload.com/','','location=0,status=0,scrollbars=1,width=760,height=660');"><i class="fa fa-upload" aria-hidden="true"></i> TinyUpload</button></span>
                              
                              
              
    
    .uploadfile button:link {
          text-decoration: none;
          color: #333;
          transition: all 0.5s ease;
    }
    .uploadfile button:visited {
          text-decoration: none;
          color: #333;
          transition: all 0.5s ease;
    }

     


    Что не так делаю?
    Версия IPS 4.1.16
    Кнопки не появляются !

    Безымянный.png

    Ссылка на комментарий
    Поделиться на другие сайты



    Присоединяйтесь к обсуждению

    Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
    Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

    Гость
    Добавить комментарий...

    ×   Вставлено с форматированием.   Вставить как обычный текст

      Разрешено использовать не более 75 эмодзи.

    ×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

    ×   Ваш предыдущий контент был восстановлен.   Очистить редактор

    ×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.


×
×
  • Создать...