Sha256: f307a1a48c04ab207fc61d69495606b8540549c758d8c2abcbcc673448e0eba3

Contents?: true

Size: 1.09 KB

Versions: 237

Compression:

Stored size: 1.09 KB

Contents

tinyMCEPopup.requireLangPack();

var EmotionsDialog = {
	addKeyboardNavigation: function(){
		var tableElm, cells, settings;
			
		cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");
			
		settings ={
			root: "emoticon_table",
			items: cells
		};
		cells[0].tabindex=0;
		tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
		if (tinymce.isGecko) {
			cells[0].focus();		
		} else {
			setTimeout(function(){
				cells[0].focus();
			}, 100);
		}
		tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
	}, 
	init : function(ed) {
		tinyMCEPopup.resizeToInnerSize();
		this.addKeyboardNavigation();
	},

	insert : function(file, title) {
		var ed = tinyMCEPopup.editor, dom = ed.dom;

		tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
			src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
			alt : ed.getLang(title),
			title : ed.getLang(title),
			border : 0
		}));

		tinyMCEPopup.close();
	}
};

tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);

Version data entries

237 entries across 233 versions & 12 rubygems

Version Path
wagn-1.15.pre rails/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.9 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.8 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.7 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.6 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.5 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.4 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.3 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.2 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.1 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.0 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.0.pre3 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.0.pre2 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.14.0.pre1 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.13.0 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.13.0.pre2 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.13.0.pre1 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.13.0.pre public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.12.13 public/assets/tinymce/plugins/emotions/js/emotions.js
wagn-1.12.12 public/assets/tinymce/plugins/emotions/js/emotions.js