2
我正在使用TinyMCE編輯器和情感插件。有誰知道如何調整情緒插件的彈出窗口的大小,因爲我有更多的表情符號可以放在窗口中,窗口沒有滾動條。TinyMCE彈出窗口調整大小
我試過編輯editor_plugin.js文件,但是這並沒有改變任何東西。
任何幫助表示讚賞。
編輯: 我tinyMCE的配置在/插件/情緒
tinyMCE.init({
mode : "textareas",
theme : "advanced",
editor_selector : "mceEditor",
editor_deselector : "mceNoEditor",
plugins : "emotions",
theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink,|,emotions,|,code",
theme_advanced_buttons2 : "fontselect,fontsizeselect",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resize_horizontal : true,
theme_advanced_resizing : false,
nonbreaking_force_tab : true,
apply_source_formatting : true,
editor_deselector : "mceNoEditor"
});
我editor_plugin.js文件/
(function() {
tinymce.create('tinymce.plugins.EmotionsPlugin', {
init : function(ed, url) {
// Register commands
ed.addCommand('mceEmotion', function() {
ed.windowManager.open({
file : url + '/emotions.php',
width : 120 + parseInt(ed.getLang('emotions.delta_width', 0)),
height : 400 + parseInt(ed.getLang('emotions.delta_height', 0)),
inline : 1
}, {
plugin_url : url
});
});
// Register buttons
ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
},
getInfo : function() {
return {
longname : 'Emotions',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
})();
我試着將高度從默認的160改爲400.清理我的緩存,然後點擊TinyMCE中的小笑臉,窗口仍然彈出相同的大小。還有什麼我需要做的? 這是在editor_plugin.js中完成的,因爲我的情緒文件夾沒有editor_plugin_src.js文件。 – wiggles 2010-09-30 09:19:04
完美適合我,並彈出窗口調整大小 – Thariama 2010-09-30 09:32:26
我的情緒文件夾有兩個文件,一個縮小和一個未縮小 – Thariama 2010-09-30 09:34:08