1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 02:00:14 +02:00

Cleanups on wysiwyg relating to news submit

This commit is contained in:
e107steved
2008-05-31 17:55:31 +00:00
parent 006c537122
commit d68ecc485a
3 changed files with 58 additions and 41 deletions

View File

@@ -4,9 +4,9 @@
| e107 website system - Tiny MCE controller file.
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/wysiwyg.php,v $
| $Revision: 1.5 $
| $Date: 2007-04-12 23:37:21 $
| $Author: e107coders $
| $Revision: 1.6 $
| $Date: 2008-05-31 17:55:31 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -102,7 +102,7 @@ function tinymce_html_bbcode_control(type, source) {
source = source.replace(/^\s*|\s*$/g,'');
if(source != '')
{
source = '[html]\\n' + source + '\\n[/html]';
source = '[html]\\n' + source + '\\n[/html]';";
/*
source = source.replace(/<\/strong>/gi,'[/b]');
source = source.replace(/<strong>/gi,'[b]');
@@ -115,7 +115,7 @@ function tinymce_html_bbcode_control(type, source) {
source = source.replace(/<\/strong>/gi,'[/b]');
source = source.replace(/<a href=\"(.*?)\"(.*?)>(.*?)<\/a>/gi,'[link=$1 $2]$3[/link]');
*/
$text .= "
}
// Convert e107 paths.
@@ -140,11 +140,12 @@ function tinymce_html_bbcode_control(type, source) {
if (html_bbcode_check == '[/html]') {
source = source.slice(0, -7);
}
}";
/*
source = source.replace(/\[b\]/gi,'<strong>');
source = source.replace(/\[\/b\]/gi,'<\/strong>');
*/
$text .= "
source = source.replace(/\{e_IMAGE\}/gi,'".$IMAGES_DIRECTORY."');
source = source.replace(/\{e_PLUGIN\}/gi,'".$PLUGINS_DIRECTORY."');