BV Commerce Forum
 » 
BV Commerce Support
 » 
General Support
 » 
Free Text Editor : Changing available buttons
 
        
            
            
    
        
Rank: Member
  Joined: 6/26/2008(UTC) Posts: 38
  
 
     | 
    
        
            
	      
                I want to add / remove the button layout that comes with the Free Text Box. How do I accomplish this? I traced through the program and found where everything is set and called from "\BVAdmin\Controls\HtmlEditor.ascx". In "\BVAdmin\Content\Columns_EditBlock.aspx.vb" that references it, I found the code: Code:    Private Sub LoadEditor()         Dim tempControl As System.Web.UI.Control =                  Content.ModuleController.LoadContentBlockEditor(b.ControlName, Me)
          If TypeOf tempControl Is Content.BVModule Then             editor = CType(tempControl, Content.BVModule)             If Not editor Is Nothing Then                 editor.BlockId = b.Bvin                 Me.TitleLabel.Text = "Edit Block - " & b.ControlName                 Me.phEditor.Controls.Add(editor)             End If         Else             Me.phEditor.Controls.Add(New LiteralControl                 ("Error, editor is not based on Content.BVModule class"))         End If     End Sub
   But I'm no closer to understanding where the button list comes from, if it is static, and what my options are.    | 
David Rodriguez Infinet Development, Inc.  | 
            
 
        
    
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
            
        
            
        
            
            
    
        
Rank: Member
  Joined: 6/26/2008(UTC) Posts: 38
  
 
     | 
    
        
            
	      
                This issue has come up again, so I'm bumping this post.
  I've used Free Text Box before and in the past I put in some Javascript that loads FTB's js files, and in the same area, you can specify by name what buttons are loaded by the ... button loader function. I had assumed this code should be findable somewhere in BV...
  [Update: I am probably confusing FCK Editor with FTB]
  Any leads appreciated. Thanks for your time in advance.    | 
David Rodriguez Infinet Development, Inc.  | 
            
 
        
    
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
            
        
    
        
            
            
    
        
Rank: Member
  Joined: 6/26/2008(UTC) Posts: 38
  
 
     | 
    
        
            
	      
                http://forums.bvcommerce.com/de...=100&m=58090&p=1/BVModules/Editors/Free Text Box/editor.ascx Code:<%@ Control Language="VB" AutoEventWireup="false"       CodeFile="editor.ascx.vb"       Inherits="BVModules_Editors_Free_Text_Box_editor" %> <%@ Register TagPrefix="FTB"       Namespace="FreeTextBoxControls"       Assembly="FreeTextBox" %> <div>FREE TEXT BOX EDITOR</div> <FTB:FreeTextBox      AutoGenerateToolbarsFromString="true"      ToolbarLayout="Bold, Italic, Underline|InsertImage,CreateLink,            Unlink, RemoveFormat|BulletedList, NumberedList|JustifyLeft,            JustifyRight, JustifyCenter, JustifyFull|FontFacesMenu,FontSizesMenu|StylesMenu"     SupportFolder="FtbWebResource.axd"      ID="FreeTextBox1"      AutoParseStyles="False"         runat="Server">    </FTB:FreeTextBox> <asp:HiddenField ID="WidthField" runat="server" Value="770" /> <asp:HiddenField ID="HeightField" runat="server" Value="300" /> <asp:HiddenField ID="WrapField" runat="server" Value="1" />  Be sure to put a comma between  InsertImage and  CreateLink    | 
David Rodriguez Infinet Development, Inc.  | 
            
 
        
    
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
            
        
    
                           
    
        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.