TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,996
  • Total Topics: 21,327
  • Online today: 386
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 57
  • Total: 57

AplosRTE Bug

Started by JonasNZ, March 25, 2005, 01:13:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JonasNZ

Hey,
ive been having extreemly wierd issues with the formatting of text spat out by the AplosRTE editor, while looking into his i realised one thing, the data being stored in the mysql DB in the `tportal_articles` is not only having
 tags in it but it also has newlines in it at random which seems to be parsed by TinyPortal / SMF is there an option to either edit the article without having AplosRTE interfeering or is there a way to strip all the \n's out of the data before it goes into the mysql DB!
Cheers JonasNZ

NightOwl

This can be work around with using Opera.

JonasNZ

What difference does that make?
because as far as i can tell its actaully the way that the data is taken from AplosRTE and stored in the mysql db!

Bjørn

I am working on a solution for this, it should have been stored without \n in the first place.

I will release a new version when this is looked at, together with a few other small issues.

JonasNZ

Cool, looking forward to it, oh and BTW i noticed that your shoutblock doesnt check throught xhtml standards, you need to change the & in the urls to & took me so long to figure out!
I would post a fixed version but ive modded mine too much :P

NightOwl

#5
I mean you can fix those mis-placement by using opera. Since opera doesn't use the editor, you need to do the html yourself. Or just copy the raw data from the AplosTRE editor and paste into the Opera input window. That is how I fix those annoying behaviours of AplosRTE.

Annoying behaviours of AplosRTE = annoying line-breaks unexpected which screw the placement of the article.

JonasNZ

i get ya!
Bloc, you should add an option to do raw html editing!
Btw im looking at how to fix that thing now so ill post sumthing if i have sumthing to post!

NightOwl

BTW, if the re-inputing with Opera doesn't work. You need to delete the article first and start with a new one.

Bjørn

Yeah, just using the textfield without the editor is an option i will add.

JonasNZ

Yeah as far as i can tell the line break stuff is ok, there is now sumthing else i have noticed, sumwhere along the way between submiting the editied article, (regardless of using AplosRTE or Plain Text it seems to strip out sum html, ive been trying to put iframes in, so that i could view another page from inside the smf site but it screws the code up, so i have to do it manually in the db.

Bjørn

Could you post what the changes are..? What code you put in, and what it ends up in the database with?

NightOwl

Quote from: JonasNZ on April 16, 2005, 11:43:12 PM
Yeah as far as i can tell the line break stuff is ok, there is now sumthing else i have noticed, sumwhere along the way between submiting the editied article, (regardless of using AplosRTE or Plain Text it seems to strip out sum html, ive been trying to put iframes in, so that i could view another page from inside the smf site but it screws the code up, so i have to do it manually in the db.

As far as I've tested with iframes. it doesn't works good on SMF either. And it always give undesirable placements.

JonasNZ

This is what i put into AplosRTE under html mode:
<iframe id="wiki" name="wiki" src="http://www.chules.net/wiki" frameborder="0" height="600" width="100%"></iframe>

And this is what goes into the DB:



And this is What it looks like if I manually inject it into the DB:
http://forum.chules.net/index.php?page=6

It Also makes no diff wether or not I use WYSIWYG on or off

Btw, if you check out forum.chules.net, is it ok with my modification to the credits in the footer.

Bjørn

#13
Its just empty when saved then?

Hm, a redirection takes place when visiting the link..I end up on a wiki page?

The credits in footer are fine. :)

JonasNZ

yeah, wierd, i dunno, we decided to scrap the iframe idea (as it was to annoying going into the db and creating a new one whenever we needed it).

But yeah if i put that stuff in the editor it never made it into the db, im not very competent with php so my attempts to trace it through havent brought me anywere

This website is proudly hosted on Crocweb Cloud Website Hosting.