Diễn Đàn Hỗ Trợ Forumvi :: Share & Support Fourumvi :: Code[Code] Nút phóng to & thu nhỏ khung soạn thảo
[Code] Nút phóng to & thu nhỏ khung soạn thảo
Trang 1 trong tổng số 1 trang • Share
[Code] Nút phóng to & thu nhỏ khung soạn thảo
Demo:
[You must be registered and logged in to see this image.]
Hướng dẫn:
Tạo 1 trang JS mớiTitle: Tùy bạn đặt
Place: In all the pages
- Code:
// SCEDITOR tela cheia
jQuery(document).on("ready",function(){
jQuery('head').append('<style>.fullscreen_sce {background: url(http://i35.servimg.com/u/f35/15/64/85/86/fullsc10.png) center no-repeat;background-color: transparent !important;width: 16px;height: 16px;position: absolute;margin-top: 3px;right: 3px;opacity: 0.3;border: none;display: inline-block;}.fullscreen_sce:hover {opacity: 0.6;}.fullscreen_sce.down {background: url(http://i35.servimg.com/u/f35/15/64/85/86/scale_10.png) center no-repeat;}.fullsc_sce{width: 100% !important;height: 100% !important;position: fixed !important;top: 0;left: 0;border: none !important;z-index: 100000 !important;border-radius: 0 !important;max-width: initial !important;} #gquickreply .sceditor-container.fullsc_sce, #gquickreply .fullsc_sce * {max-width: initial !important;}.fullsc_sce_edit {width: calc(100% - 10px) !important;height: calc(100% - 48px) !important;}.no_scoll {overflow: hidden !important;}</style>');
jQuery('.sceditor-toolbar').after('<span class="fullscreen_sce"></span>');
jQuery('.fullscreen_sce').live('click', function() {
jQuery(this).toggleClass('down');$('body').toggleClass('no_scoll');jQuery('.sceditor-grip').toggle();
jQuery(this).next('i-frame').toggleClass('fullsc_sce_edit').next('textarea').toggleClass('fullsc_sce_edit');
jQuery(this).parent('.sceditor-container').toggleClass('fullsc_sce');
});
});
Nguồn: FMCodes
HelpsFMvi- Ban Quản Trị FMvi
- Số bài : 104
HelpsPoints : 15528
Likes : 33
Ngày tham gia : 10/03/2016
Trạng thái :Online Offline
Tuổi : 26
Location : Ninh Thuận
[Click để xem tài sản HelpsFMvi]
Similar topics
» [Code] Thêm nhiều font chữ cho trình soạn thảo
» [Code] Khung avatar bằng CSS
» [CSS] Đóng khung chú thích box cuối diễn đàn
» [Code] Tạo Widget Đồng Hồ
» [Code] Màu Cho Các Thẻ Code
» [Code] Khung avatar bằng CSS
» [CSS] Đóng khung chú thích box cuối diễn đàn
» [Code] Tạo Widget Đồng Hồ
» [Code] Màu Cho Các Thẻ Code
Trang 1 trong tổng số 1 trang
Diễn Đàn Hỗ Trợ Forumvi :: Share & Support Fourumvi :: Code[Code] Nút phóng to & thu nhỏ khung soạn thảo
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|