PHP Classes

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

Recommend this page to a friend!
  Classes of Michael Beck   Xoops 2.5   htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/js/xoopsquote.js   Download  
File: htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/js/xoopsquote.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,055 bytes
 

Contents

Class file image Download
// created 2005-1-12 by Martin Sadera (sadera@e-d-a.info) // ported to Xoops CMS by ralf57 // updated to TinyMCE v3.0.1 / 2008-02-29 / by luciorota tinyMCEPopup.requireLangPack(); var XoopsquoteDialog = { init : function() { var formObj = document.forms[0]; // Get the selected contents as text and place it in the input formObj.qtext.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); }, insert : function() { // Insert the contents from the input into the document var formObj = document.forms[0]; //if (window.opener) { var qtext = formObj.qtext.value; qtext.replace(new RegExp("<",'g'), "&lt;"); qtext.replace(new RegExp(">",'g'), "&gt;"); var html = '<div class="xoopsQuote">'; html += qtext+'</div><br />'; tinyMCEPopup.editor.execCommand('mceInsertContent', true, html); //} tinyMCEPopup.close(); } }; tinyMCEPopup.onInit.add(XoopsquoteDialog.init, XoopsquoteDialog);