Hey guys. I was trying to find a way to make setting up the fckEditor as dynamic as possible. What i would like to have is a form that i can fill out information such as basepath and css style sheet link... all the types of info that makes the FCKeditor unique to a site.
i'm planning on storring all the config info in a database. My servers are php based so clearly this is my only option. Would it be possible to have a php file that reads the database and sets variables to hidden fields, and also links the external fckconfig.js file. And then maybe inside the fckconfig.js do something like...
var Base = document.getElementById('BaseHref').value
FCKConfig.BaseHref = Base;
i'm not ever sure something like this would work when trying to read the hidden variable from the php file to the external js. If anyone has any type of advice on how to do this let me know. I'm open to suggestions.
Thanks,
~Jamie
i'm planning on storring all the config info in a database. My servers are php based so clearly this is my only option. Would it be possible to have a php file that reads the database and sets variables to hidden fields, and also links the external fckconfig.js file. And then maybe inside the fckconfig.js do something like...
var Base = document.getElementById('BaseHref').value
FCKConfig.BaseHref = Base;
i'm not ever sure something like this would work when trying to read the hidden variable from the php file to the external js. If anyone has any type of advice on how to do this let me know. I'm open to suggestions.
Thanks,
~Jamie