I'm trying to make it work because I want a better image support with bbcode fckeditor for Genoa. The only thing is that Cotonti doesn't like these codes. The result is that page_html doesn't want to get parsed at all (during page edit) and even though page_text has some text in it, the page on site is blank (parser protests)
I can't really tell where I made a mistake... I don't like all that regexes. Please help, I'm fighting with it for a long time already :)
It would help a lot if you first found which one of them (or if any of them) causes this problem using the method of exclusion (adding those bbcodes one by one). It's a suicide checking all these regexps at once for consistency.
BUT... the bbcodes don't work if alt is empty (it happens). What would you recommend to make it always work? Always put a space there...?
Added 14 minutes later:
yes, it's something about the alt attribute. If the bbcode ends with alt=] , then errors appear.
How to prevent it?
Added 1 hour later:
OK, I found a way... I just made it required in fckeditor >_> I'll get back when I stumble upon more problems.
Generally I'm glad with my progress, I edited (ekhm... hacked >_> but we all know how it looks like: no proper tpls) Genoa pfs a little to make the standalone version compatible with fckeditor. :) So when I click "image" and then "browse", PFS standalone pops up and I can chose images from PFS. :) Yay! Then fckeditor calculates width and height and I can start playing with it.
Just now I have to add hundreds of image bbcodes to handle all that vspace hspace border etc crap ^_^ (excuse my french). But I think it will be worth it.
This post was edited by tensh (2011-11-12 21:38, 13 years ago)