Đăng nhập
Latest topics
» Tôi sẽ đỗ đại học!by nightWalker 9/2/2024, 7:00 pm
» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm
» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm
» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm
» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am
» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am
» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm
» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am
» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm
» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am
» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm
» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am
» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm
» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm
» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm
» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm
» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm
» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm
» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am
» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm
» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm
» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm
» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am
» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm
» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am
Top posting users this week
No user |
[Code] Vô hiệu hóa SCEditor và CodeMirror[✔]
Trang 1 trong tổng số 1 trang
[Code] Vô hiệu hóa SCEditor và CodeMirror[✔]
Nguồn: http://devs.forumvi.com/
Đây là 1 code hay dành cho các bạn đang dùng chrome ( vì ai cũng bít thằng này nó ko cho động vô code nữa, nhưng cờ rôm + sài bình thường nhé^^)
Cài đặt: http://userscripts.org/scripts/show/185765
Đây là 1 code hay dành cho các bạn đang dùng chrome ( vì ai cũng bít thằng này nó ko cho động vô code nữa, nhưng cờ rôm + sài bình thường nhé^^)
Cài đặt: http://userscripts.org/scripts/show/185765
- Code:
// ==UserScript==
// @name Remove SCEditor + CodeMirror
// @namespace http://devs.forumvi.com/
// @version 0.4
// @description Thêm tùy chọn vô hiệu hóa SCEditor và CodeMirror khi tạo hoặc chỉnh sửa code trong Forumotion
// @include http://*/admin/index.forum*
// @match http://*/admin/index.forum*
// @copyright 2013+, Zzbaivong
// @run-at document-end
// @grant none
// ==/UserScript==
$(function () {
function afterBtn(a){
$("form[action^='/admin/index.forum'] input:submit:last").after('<button id="remove_' + a + '" class="icon_cancel" type="button"> Vô hiệu hóa ' + a + '</button>');
$("#remove_" + a).css({
"font-family": "'Lucida Sans Unicode', Verdana, Helvetica, Arial, sans-serif",
"font-size": "100%",
"vertical-align": "middle"
});
}
if($.sceditor !== undefined) {
afterBtn("SCEditor");
$("#remove_SCEditor").click(function(){
$("#text_editor_textarea").height($(".sceditor-container").height()).width($(".sceditor-container").width());
$("#text_editor_textarea").sceditor("instance").destroy();
$(this).remove();
});
}
if(editor) {
afterBtn("CodeMirror");
$("#remove_CodeMirror").click(function(){
$("#text_editor_textarea").height($(".CodeMirror").height()).width($(".CodeMirror").width());
editor.toTextArea();
$("#codemirror_search").parent().parent().remove();
$(this).remove();
});
}
});
- Vô hiệu hóa hoàn toàn SCEditor và CodeMirror:
- Code:
// ==UserScript==
// @name Remove SCEditor + CodeMirror
// @namespace http://devs.forumvi.com/
// @version 0.4
// @description Vô hiệu hóa SCEditor và CodeMirror khi tạo hoặc chỉnh sửa code trong Forumotion
// @include http://*/admin/index.forum*
// @match http://*/admin/index.forum*
// @copyright 2013+, Zzbaivong
// @run-at document-end
// @grant none
// ==/UserScript==
$(function () {
if ($.sceditor !== undefined) {
$("#text_editor_textarea").height($(".sceditor-container").height()).width($(".sceditor-container").width());
$("#text_editor_textarea").sceditor("instance").destroy();
}
if (editor) {
$("#text_editor_textarea").height($(".CodeMirror").height()).width($(".CodeMirror").width());
editor.toTextArea();
$("#codemirror_search").parent().parent().remove();
}
});
Zzbaivong
Similar topics
» [Code] SCEditor Tool - SafeShared Upload[✔]
» [Thắc mắc] CSS cho SCEditor
» Chế độ toàn màn hình cho SCEditor
» [Thắc mắc] Sceditor không dãn ra hết cỡ
» [SCEditor] Sửa lỗi không đóng tinypic[✔]
» [Thắc mắc] CSS cho SCEditor
» Chế độ toàn màn hình cho SCEditor
» [Thắc mắc] Sceditor không dãn ra hết cỡ
» [SCEditor] Sửa lỗi không đóng tinypic[✔]
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|