1
khalidinho
bbcode and tinymce
  • 2013/7/19 16:14

  • khalidinho

  • Just popping in

  • Posts: 24

  • Since: 2009/12/15


hello everybody

I tried tinymce with bbcode plugin

the problem is tinymce's bbcode is different than xoops bbcode

for example : color code
in tinymce
[color=#3366FF]with #[/color]


in xoops
[color=3366FF]No #[/color]


also in other codes

how can I modify tinymce bbcode to xoops ?

2
andrey3761
Re: bbcode and tinymce

hello

File:
/class/module.textsanitizer.php

Find
$patterns[] = "/[color=(['"]?)([a-zA-Z0-9]*)\1](.*)[/color]/sU";
        
$replacements[] = 'color#\2;">\3';


Replace

$patterns[] = "/[color=#?(['"]?)([a-zA-Z0-9]*)\1](.*)[/color]/sU";
        
$replacements[] = 'color#\2;">\3';

3
khalidinho
Re: bbcode and tinymce
  • 2013/7/20 16:14

  • khalidinho

  • Just popping in

  • Posts: 24

  • Since: 2009/12/15


thank it works greatly

but I want change it from tinymce to xoops , not from xoops to tinymce

4
khalidinho
Re: bbcode and tinymce
  • 2013/8/12 22:40

  • khalidinho

  • Just popping in

  • Posts: 24

  • Since: 2009/12/15


up

5
Mamba
Re: bbcode and tinymce
  • 2013/8/13 13:19

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


I am not a Regex specialist, so I cannot help you here. But since you have the conversion working into one direction perfectly, try to learn more about Regex and try to see how you can make the change in the reverse direction.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

6
khalidinho
Re: bbcode and tinymce
  • 2013/8/13 14:06

  • khalidinho

  • Just popping in

  • Posts: 24

  • Since: 2009/12/15


actually, I started to do it by myself and I have changed alignment tags to xoops successfully. I am working for the other tags and trying to solve some problems with bbcode tags.

7
Mamba
Re: bbcode and tinymce
  • 2013/8/13 14:48

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Excellent!

When you're done successfully, please share with the rest of us, so some other people can benefit from it!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

698 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 698


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits