R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
How do I embed Html Editor Providers?
Last Post 01 Jan 1900 05:00 AM by . 13 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
22 Sep 2006 05:50 PM  
IS there any way to call a Html Editor Providers in ListX yet? I say the provider because I do not want to limit the website to just Free Text Box.

Also I think I have heard that you can now upload images. Is this in the documentation yet? Or maybe a working example?

Thanks
Rick
pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
23 Sep 2006 12:44 PM  
I've implemented TinyMCE from MoxieCode as have others here. This is a sample I have of how to insert FTB although I know nothing about implementing it

Your Form assuming a field name of comments:
<td style="width:100px;">Comments:</td><td>{texteditor,frmComments,"[Comments]"}</td>
Your submit:
<a href="javascript:FTB_API['frmComments'].StoreHtml();document.forms[0].submit();">Save</a>
ListX....makes you look brilliant, even though you're not.
pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
23 Sep 2006 12:47 PM  
the form replaced some of the tags. document.formsΎ]. should read
document.forms leftsqbrack 0 rightsqbrack
ListX....makes you look brilliant, even though you're not.
mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
23 Sep 2006 03:40 PM  
pauldes, have you been successful in getting TinyMCE to work with ajax?
pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
25 Sep 2006 07:29 PM  
nope
ListX....makes you look brilliant, even though you're not.
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
28 Sep 2006 03:26 AM  
Is that all I need? Just paste that and it will show up? Will it use other text boxes besides free text box? I see that in the code above FTB?

Thanks
Rick
mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
28 Sep 2006 03:37 AM  
As far as the FreeTextBox goes, yes. The javascript and support files are already installed via DNN. You do also need to add the appropriate code to your page though.

<script type="text/javascript" src="[*LOCALHOSTALIAS]/Providers/HtmlEditorProviders/Ftb3HtmlEditorProvider/ftb3/FTB-Utility.js"></script>
<script type="text/javascript" src="[*LOCALHOSTALIAS]/Providers/HtmlEditorProviders/Ftb3HtmlEditorProvider/ftb3/FTB-FreeTextBox.js"></script>
<script type="text/javascript" src="[*LOCALHOSTALIAS]/Providers/HtmlEditorProviders/Ftb3HtmlEditorProvider/ftb3/FTB-ToolbarItems.js"></script>
<script type="text/javascript" src="[*LOCALHOSTALIAS]/Providers/HtmlEditorProviders/Ftb3HtmlEditorProvider/ftb3/FTB-Pro.js"></script>

Since this is a hot topic, I would love it if the guys from Bi4ce would jump in and help us figure out some alternatives to the clunky FTB to work in conjunction with Ajax.
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
28 Sep 2006 01:09 PM  
The only problem with this is we are not using the HTML Provider we are using FTB. This is what I was asking at the beginning. I know I can add in the reference to a HTML element. I just wanted to know if it can be done with ListX calls.
kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
03 Oct 2006 04:35 PM  
I have added a tab to demonstrate the use of tinyMCE through AJAX. For those of you not familiar with tinyMCE - it is a fantastic Rich Text Editor, similar to FreeTextBox and FCK, with a very small footprint.

The demonstration provides steps for using tinyMCE, and controlling exactly which TEXTAREA objects you want to enhance with tinyMCE.

Click Here to view the tinyMCE integration sample.
mrwebslingerUser is Offline
Basic Member
Basic Member
Posts:357

--
03 Oct 2006 05:28 PM  
Now that is what I am talking about! Thanks a ton Kevin. You're a Gentleman and A Scholar.

zingernetUser is Offline
New Member
New Member
Posts:48

--
05 Oct 2006 04:15 AM  
Kevin, thank you for the post, however I still can't get it to work using your example. The TinyMCE texareas still revert to normal textareas when you change the value of an ajax-enabled drop-down list. The only way I was able to get it to sort of work was by changing the line:

if (tinyMCE.getInstanceById(items.id) == null)

to read simply: if (1==1)

to make the textarea initialize on every post regardless. However, it sometimes has unexpected results. Would you mind posting an XML code of a working ListX TinyMCE w/ Ajax example?

v/r,

Steve
kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
05 Oct 2006 07:24 PM  
Hmm - thats odd.. Let me take a look.
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
09 Nov 2006 03:51 PM  
Kevin,
I was wondering if you were ever able to update your sample code? I am trying to Save Data and retrieve it and I am not seeing anything on in the RTE.

Here is the line I am using:
<textarea id="txtDescription" name="txtDescription" cols="40" rows="10" tinymce="true">[memDescription]</textarea>

I am setting my variable to:
<anyType xsi:type="QueryOptionItem">
<Index>0</Index>
<VariableType><Form></VariableType>
<QuerySource>txtDescription</QuerySource>
<QueryTarget>@txtDescription</QueryTarget>
<QueryTargetLeft>'</QueryTargetLeft>
<QueryTargetRight>'</QueryTargetRight>
<QueryTargetEmpty>NULL</QueryTargetEmpty>
<Protected>true</Protected>
<EscapeHTML>false</EscapeHTML>
<EscapeListX>2</EscapeListX>
</anyType>

Can you see anything that is wrong here?
rtoneriiUser is Offline
Basic Member
Basic Member
Posts:308

--
15 Nov 2006 03:41 PM  
Ping
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share