.:: convert html codes to bbcodes ::.
#1
hi dudes
as we know in VBulletin editor posts some html codes and a system converts them to bbcode and again when someone whants to edit posts the system converts bbcodes to html
because editor just works with html
so how can i do some thing like that?
i mean when i installed an editor like tinemce and send a code like:
<strong>(.*?)</strong>
a script automatically convert this to
[ b]$1[ /b]
if you give me an example i will do that for every codes
thanks in advance for your help
Reply
#2
no one can help me?
Reply
#3
what a powerfool support..... :-(
Reply
#4
So basically what you're looking to do is use TinyMCE as your editor for your posts? I can't give an example off the top of my head, but I'm currently working on this for another site and have no problems sharing the code once I'm done.

Fwiw though, take a look at the bbcodes plugin for TinyMCE (included with it), that's what I'm using as a starting point and just adding onto it from there. Biggest problems I've run into thus far is nested quotes don't seem to work out too well, and linebreaks gave me a few issues.
Reply
#5
(09-11-2008, 09:04 AM)AceofSpades Wrote: So basically what you're looking to do is use TinyMCE as your editor for your posts? I can't give an example off the top of my head, but I'm currently working on this for another site and have no problems sharing the code once I'm done.

Fwiw though, take a look at the bbcodes plugin for TinyMCE (included with it), that's what I'm using as a starting point and just adding onto it from there. Biggest problems I've run into thus far is nested quotes don't seem to work out too well, and linebreaks gave me a few issues.
no i'm not using TinyMCE
i'm using another one
you know using html codes is dangerous so i want to know is there any way to convert html codes after posting to bbcodes
you mean your tinymce is integerated with all codes?
Reply
#6
It will be, currently it only supports about 25 or so of what I have available, but by the time I'm finished it will work as a WYSIWYG editor for bbcode.
Reply
#7
(09-11-2008, 07:39 PM)AceofSpades Wrote: It will be, currently it only supports about 25 or so of what I have available, but by the time I'm finished it will work as a WYSIWYG editor for bbcode.
can i have this editor?
Reply
#8
Just disable html why would you want that just don't allow people use html.
[Image: Mmarzex.png]
Follow me on my blog Max Marze.com
"You can't just play music you have to feel it and live it.- A wise man once told me this.
Nunquam Redono
Reply
#9
(09-12-2008, 10:22 AM)x X x Wrote:
(09-11-2008, 07:39 PM)AceofSpades Wrote: It will be, currently it only supports about 25 or so of what I have available, but by the time I'm finished it will work as a WYSIWYG editor for bbcode.
can i have this editor?

Once I'm finished with it I'll hand it out, but I don't expect to get it completely finished for a few more weeks.

(09-12-2008, 09:08 PM)Mmarzex Wrote: Just disable html why would you want that just don't allow people use html.

(I think) What he's wanting is a WYSIWYG editor that works for bbcode, problem is that all WYSIWYG editors that you can get work with HTML but they can change to bbcode before you save the post if you tell them which bbcode to swap out for each HTML tag.
Reply
#10
You do know this is a request. Requests aren't support. Support people will try to fix fast. Requests are started when people feel like making the plug in.
[Image: Chasingu.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)