PHP Classes

File: htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/js/xoopsemotions.js

Recommend this page to a friend!
  Classes of Michael Beck   Xoops 2.5   htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/js/xoopsemotions.js   Download  
File: htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/js/xoopsemotions.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 7 years ago
Size: 1,021 bytes
 

Contents

Class file image Download
/** * @author ralf57 * @author luciorota (lucio.rota@gmail.com) * @author dugris (dugris@frxoops.fr) */ tinyMCEPopup.requireLangPack(); var XoopsemotionsDialog = { init : function() { // tinyMCEPopup.resizeToInnerSize(); }, insert : function( emotion ) { // Insert the contents from the input into the document if ( emotion.title == null ) {emotion.title = "";} // XML encode emotion.title = emotion.title.replace(/&/g, '&amp;'); emotion.title = emotion.title.replace(/\"/g, '&quot;'); emotion.title = emotion.title.replace(/</g, '&lt;'); emotion.title = emotion.title.replace(/>/g, '&gt;'); var html = '<img src="' + emotion.src + '" border="0" alt="' + emotion.title + '" title="' + emotion.title + '" />'; tinyMCEPopup.editor.execCommand('mceInsertContent', false, html); tinyMCEPopup.close(); } }; tinyMCEPopup.onInit.add(XoopsemotionsDialog.init, XoopsemotionsDialog);