Make the WYSIWYG editor the default instead of in a popup?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
clarkrb
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Fri Jun 12, 2009 9:46 am

Make the WYSIWYG editor the default instead of in a popup?

Post by clarkrb » Wed Sep 15, 2010 2:23 pm

When we install AbleCommerce for clients and they need to update their content, it's no surprise that 99% of the time they want to use the WYSIWYG editor. Unfortunately, the Edit Scriptlet screen displays a standard text box with the HTML. They then always have to click the icon for the HTML editor, save their changes, close the dialog, then save yet again back on the Edit Scriptlet screen.

This is cumbersome for clients obviously. Is there a way to eliminate all this by just replacing the text box on the Edit Scriptlet page with the HTML editor? It would be a huge improvement to the usability of the product.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Make the WYSIWYG editor the default instead of in a popup?

Post by mazhar » Thu Sep 16, 2010 4:38 am

You will be required to customize the desired page. Try putting following line next to your page declaration on desired page

Code: Select all

<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
Then use following code instead of textbox

Code: Select all

<FCKeditorV2:FCKeditor id="Editor" runat="server" Height="580" />
finally in code behind try setting its value instead of textbox.

Raheel
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 24
Joined: Tue May 03, 2011 8:53 am

Re: Make the WYSIWYG editor the default instead of in a popup?

Post by Raheel » Wed May 04, 2011 8:12 am

Hello Mazhar,

I want to use FCKEditor as a default editor on the page "EditScriptlet.aspx" instead of textarea. I tried the modifications you suggested above but it only displays the FCKEditor ,it doesn't show any text in it nor does it save any text or html code. I am using AbleCommerce version 7.0.5.

Default code for the textarea:

Code: Select all

<asp:TextBox ID="ScriptletData" runat="server" TextMode="MultiLine" Width="98%" Height="200px"></asp:TextBox>
Code for FCKEditor I used:

Code: Select all

<FCKeditorV2:FCKeditor id="Editor" runat="server" Height="580" />

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Make the WYSIWYG editor the default instead of in a popup?

Post by mazhar » Wed May 04, 2011 8:23 am

In AbleCommmerce 7.0.7 we implemented the support of inline editor. Edit Website\Admin\Website\ContentPages\AddContentPage.aspx file and locate following code line.

Code: Select all

<cb:HtmlEditor ID="WebpageContent" runat="server" Height="300px" Width="100%" Mode="Inline"></cb:HtmlEditor>
So you can try replacing standard text box with this new control. There are four available modes Default, Basic, Inline, Modal.

Raheel
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 24
Joined: Tue May 03, 2011 8:53 am

Re: Make the WYSIWYG editor the default instead of in a popup?

Post by Raheel » Wed May 04, 2011 8:33 pm

Hello Mazhar,

Thanks for your reply, so can't it be used inline with version 7.0.5?

Post Reply