If I wanted to reference the formated text (fck editor) block.. How would i do that?
I am trying to use a drop down to automatically put that selected value into the formated area...
IE:
echo "<option class=\"Data\" onClick=\"document.compose.MyEditorm.value=myString$Frowm2[user_id]\">";
If i change MyEditorm to name (a input field) the selected value does get put into it... but I dont know how to reference the fck area ... can someone please help ?
Thanks so much
I am trying to use a drop down to automatically put that selected value into the formated area...
IE:
echo "<option class=\"Data\" onClick=\"document.compose.MyEditorm.value=myString$Frowm2[user_id]\">";
If i change MyEditorm to name (a input field) the selected value does get put into it... but I dont know how to reference the fck area ... can someone please help ?
Thanks so much
RE: How do I reference the formated text bloc
-ps if you are talking strictly the formatted text... hrm, dunno. I think it's the same thing, but I'm no guru.
RE: How do I reference the formated text block?
but im not talkinga bout using a plugin to select data and insert into it... im already doing this...
I was trying to avoid putting all the code in here.but maybe it will be easier to show you than attempt to explain..
Here is the drop down in a NON-Related field: Tihs simply selects users from the Private message users table and spits them out in a drop down.
<select name="cc" size="1" id="cc">
<? $Fmu_query2 = "SELECT distinct(user_id) as user_id FROM pms_users order by user_id ASC"; $Fmu_query_result2 = mssql_query($Fmu_query2); $Fnum22 = mssql_num_rows($Fmu_query_result2); echo "<option selected value=\"\">CC:</option>"; while($Frowmu2=mssql_fetch_array($Fmu_query_result2)) { $Fu_query2 = "SELECT user_id,username FROM users WHERE user_id = '$Frowmu2[user_id]'"; $Fu_query_result2 = mssql_query($Fu_query2); $Funum2 = mssql_num_rows($Fu_query_result2); while($Frowm2=mssql_fetch_array($Fu_query_result2)) { ?>
<SCRIPT>myString<?echo$Frowm2[user_id];?>="<?echo"$Frowm2[username]";?>"</SCRIPT>
<? //onClick=\"document.getElementById(compose).MyEditorm.value=myString$Frowm2[user_id]\" echo "<option class=Data style=\"background-Color:#FFCC66\" value=\"$Frowm2[user_id]\">$Frowm2[username]</option>"; } } echo "</select>"; ?>
The commented line is the line id like to use to (on selection) put the data into the following fckarea...:
<? echo " <input onclick=\"ac_AutoHide()\" type=\"hidden\" id=\"MyEditorm\" name=\"body\" value=\"\" > <input onclick=\"ac_AutoHide()\" type=\"hidden\" id=\"MyEditorm___Config\" value=\"Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded)\">"; $oFCKeditor = new FCKeditor('MyEditorm') ; $oFCKeditor->BasePath = '/editor/editor/fckeditor.html?InstanceName=MyEditorm&Skin=Silver&Toolbar=Basic'; $oFCKeditor->Width = '418' ; $oFCKeditor->Height = '150' ; //$oFCKeditor->Value = 'Default test in editor'; $oFCKeditor->Create() ; ?>
Thanks for your time.. oh and btw.. gaming does help! LOL what do you play ? We have a gaming server online and play BF2 nighly!
you can email me if you want more details:
stripe-man@stripe-man.com
RE: How do I reference the formated text block?
in reference to the above posts... how to I insert text from a text field or drop down (select) OUTSIDE of fck .. and get it ot insert into the FCK area ?
Please help!