Hi
I was wondering if it is possible to use only one toolbar for formating multiple fields?
I am building a script where you have 5 textareas and would like to load only one toolbar which would control all of them.
Is this even possible? if it isnt it would be a great new future beacuse loading of the script would for sure get faster
I was wondering if it is possible to use only one toolbar for formating multiple fields?
I am building a script where you have 5 textareas and would like to load only one toolbar which would control all of them.
Is this even possible? if it isnt it would be a great new future beacuse loading of the script would for sure get faster
RE: Toolbar modifications
Not inthe way you're thinking, I don't think (if you wanted em all visible).
But you can for sure have either
A: one 'rich editor' and several 'hidden' text fields. Just use JS to switch the content based on a onclick event.
i.e. user edit's "general info", then click's "Procedures" tab/button/picture/whatever, which switches the content from the 'rich editor' to the "hidden" text field (the real field that gets submitter) and loads the content from the 'hidden' "Procedures" field to the 'rich editor'. Repeat ad nausium, switching out content from hidden field to editor to hidden field to editor. Get it?
or you could
B: have several instances of fckeditor, each in a hidden div that becomes visable when a button is clicked.
I'm currently doing B, because I was wondering about that whole 'multiple' editors in one page bit, and after satisfying myself that it works, I'm like, "um, option 'A' is pro'lly better".
But I don't really know. So many variables, ya know? Maybe a guru will chime in and be like, "yo, bust it".
If i write a JS func that switches out content i'll post it.
Um... HTH!!!
RE: Toolbar modifications
I have an example of changing content and toolbars dynamically, they are build into the sample05 file ( it is php but all the bits your interested in a re client side JS anyway. ) you can find it here:
http://www.mcpuk.net/fbxp/downloads/sample05.phps
RE: Toolbar modifications
thnx for the replys. I will look into them and write back.