Rank: Member
Joined: 6/29/2006(UTC) Posts: 18
|
Do you currently have any plans for implementing a WYSIWYG editor for fields like the product description or on the custom page areas?
|
|
|
|
Rank: Member
Joined: 11/6/2003(UTC) Posts: 1,903
|
Admin> Options> General> "WYSIWYG Editor" |
Noah |
|
|
|
Rank: Member
Joined: 5/2/2005(UTC) Posts: 259
|
I just tried this - great new feature!
One thing that surprised me, though, is that if you choose the "Free Text Box" editor, it doesn't produce XHTML. The tags are upper case (XHTML wants lower-case), and the <BR> tag isn't self-closing like this <br />
Any chance that will change to XHTML in a future service pack?
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
I have not tested this, but you should be able to store the XHTML in the database by changing the Text property in BVModules/Editors/Free Text Box/editor.ascx.vb as shown here,
<SPAN style="COLOR: #2b91af"> 19 <SPAN style="COLOR: blue">Public <SPAN style="COLOR: blue">Overrides <SPAN style="COLOR: blue">Property Text() <SPAN style="COLOR: blue">As <SPAN style="COLOR: blue">String
<SPAN style="COLOR: #2b91af"> 20 <SPAN style="COLOR: blue">Get
<SPAN style="COLOR: #2b91af"> 21 <SPAN style="COLOR: blue">Return <SPAN style="COLOR: blue">Me.FreeTextBox1.Xhtml
<SPAN style="COLOR: #2b91af"> 22 <SPAN style="COLOR: blue">End <SPAN style="COLOR: blue">Get
<SPAN style="COLOR: #2b91af"> 23 <SPAN style="COLOR: blue">Set(<SPAN style="COLOR: blue">ByVal value <SPAN style="COLOR: blue">As <SPAN style="COLOR: blue">String)
<SPAN style="COLOR: #2b91af"> 24 <SPAN style="COLOR: blue">Me.FreeTextBox1.Text = value
<SPAN style="COLOR: #2b91af"> 25 <SPAN style="COLOR: blue">End <SPAN style="COLOR: blue">Set
<SPAN style="COLOR: #2b91af"> 26 <SPAN style="COLOR: blue">End <SPAN style="COLOR: blue">Property
Note that this will not affect what you see when you view the HTML inside of the editor. It changes what is stored in the database. |
|
|
|
|
Rank: Member
Joined: 5/2/2005(UTC) Posts: 259
|
Andy, thanks for the tip! I just got around to implementing this (gettting closer to finishing up our first BVC5 site), and although making this change causes it to use XHTML instead of HTML tags, it's not valid XHTML because the tags are all cap. Here's an example: Code: <STRONG>This is bold text</STRONG>
Anybody know a way to make it the tags lower case so that they're valid?
|
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Hi,
The editor you choose to use is entirely up to you. Bvc is not the publisher of the freetextbox, however is it regarded as the best free one available which is why Bvc choose to include it with their product. The freetextbox actually has a pro version you can purchase which claims to have xhtml support (www.freetextbox.com). Personally, I would consider looking into other .net editors that are available out there if you are looking for an "upgrade" such as Cutesoft's (www.cutesoft.net) or Telerik's product (www.telerik.com). |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Yahoo! developers just released their Rich Text Editor. I have not looked at it closely, but I like their other controls very much. |
|
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
The only problem with it, is because the way it renders, I do not think it works within the bvc plugin architecture. |
Netriplex Corporation<br /> |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.