This topic is locked
[SOLVED]

 Basic Rich Text Editor Issues

9/8/2010 4:33:58 PM
PHPRunner General questions
H
HighConcept author

I am a heavy user of the "built-in" (Kevin Roth) rich text editor. I have a couple of issues:
(1) Is there any way to DISABLE the behavior of RTE adding the base URL of my PHP Runner application to links entered through the RTE? For example, if I enter the following link in RTE: "../documents/my_doc.pdf", RTE changes it to "http://www.mywebsite.com/phprunner_aps/my_doc.pdf";.
Either you or it is making the assumption that relative URLs MUST refer to the running application (the one I built with PHP Runner). But in fact, my PHP Runner Application is the DASHBOARD for content management system, and the data in the database contains actual code that will run on some Website. My website app serves up mythical links when I create them in RTE. I CAN get around this by putting a full canonical path, but unfortunately, my "stored" code then is no longer relocatable.
I shudder at the thought of having to go back through hundreds of records, changing links, when my Website moves from development into production, and my base URL changes.
(2) Capitalized HTML tags: Basic RTE creates UPPERCASE <TAGS>. But the XHTML doctype required <lowercase> tags. When my website serves up code from the database that was created via PHPRunner+RTE, the pages WILL NOT PASS W3C VALIDATION!
For a while, I laboriously went into View Source mode, and changed the tags, only to find that RTE changed them right back! We need RTE to create XHTML-compliant tags, i.e., lowercase.
Just out of curiosity, are you distributing the LATEST version of RTE with the latest version of PHP Runner, or is RTE a few generations (or a few years) back?
Thanks in advance,

Steve Johnson

Sergey Kornilov admin 9/9/2010

Steve,
it appears we use a fairly old version of RTE. We will be updating it to the latest version shortly.
Unfortunately we cannot provide much help with base URL issue you having. Hopefully update to latest version will provide a way to modify this behavior and will build XHTML complaint code as well.