This is a migrated thread and some comments may be shown as answers.

ApplyCss and Editor behavior

5 Answers 27 Views
Editor
This is a migrated thread and some comments may be shown as answers.
arnaud
Top achievements
Rank 1
arnaud asked on 20 Jan 2009, 06:16 PM
Hi,

1) Taking this example : http://demos.telerik.com/aspnet-ajax/Editor/Examples/Default/DefaultCS.aspx
- Select one part of the text ('is the successor' for example)
- Apply 'Red Text' style
- Apply 'div' style

You can see that 'is the successor' is still with the 'Red Text' style (and therefore not the 'div' one).

Is it a normal behaviour ?

2) About the localisation of the word 'ApplyClass', using RadEditor.Tools.fr-FR.resx. If my translation of ApplyClass is 'Formater' the Editor behavior is ok on page load. However if you click inside the Editor, 'Formater' is replace by 'ApplyClass'.
How can I handle that ?

Thank you

5 Answers, 1 is accepted

Sort by
0
arnaud
Top achievements
Rank 1
answered on 22 Jan 2009, 01:55 PM
Hello,

Any ideas ?

Thank you
0
Rumen
Telerik team
answered on 23 Jan 2009, 03:37 PM
Hi Arnaud,

Straight to the points:
  1. Could you please, tell us whether you select the 'is the successor' string with the interval after it or not? I was able to reproduce the problem only when the string is selected with the empty space after it, e.g. 'is the successor '.
  2. I tried to reproduce the second problem but unfortunately to no avail. Could you please, send a sample working project that demonstrates the issue? I will examine it and once I reproduce the problem, I will do my best to provide a solution.


Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
arnaud
Top achievements
Rank 1
answered on 27 Jan 2009, 12:42 PM
Hi Rumen

1) You are right for IE, it only happens when the interval is selected. In Firefox it happens in both cases

2)

<telerik:RadEditor ID="RadEditor1" runat="server" Language="fr-FR"  ToolsFile="~/lesitedumariage/espace_pro/XMLFile.xml">
 </telerik:RadEditor>

With XMLFile.xml

<?xml version="1.0" encoding="utf-8" ?> 
<root> 
 
  <tools name="MainToolbar" dockable="true" enabled="true"
     
     
    
    <tool name="ApplyClass" /> 
    <tool separator="true"/> 
    <tool name="Bold" /> 
    <tool name="Italic" /> 
    <tool separator="true"/> 
    <tool name="InsertUnorderedList" /> 
    <tool name="InsertOrderedList" /> 
    <tool separator="true"/> 
    <tool name="Pasteplaintext" /> 
  </tools> 
  <classes> 
    <class name="Titre" value=".Titre" /> 
    <class name="Titre 2" value=".Titre2" /> 
  </classes> 
  
 
</root> 




0
Rumen
Telerik team
answered on 30 Jan 2009, 02:26 PM
Hi Arnaud,

1) Thank you for the additional information. I verified the problem and logged it in our bug tracking system. Currently, my suggestion is to clear the style before applying a new one by pressing the Clear Class dropdown item.

I updated your Telerik points for your bug report.

2) Unfortunately, I was not able to reproduce the second problem again. For your convenience I have attached my project and video demonstrating my test. What am I missing?


Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
arnaud
Top achievements
Rank 1
answered on 30 Jan 2009, 03:54 PM
Hi Rumen,

Thank you for the Telerik Point.

About my problem number two, as my code was the same than in your zip files, I have updated Teletik using the last version available and it fixed the problem.

Sorry for that.

Regards,
Arnaud
Tags
Editor
Asked by
arnaud
Top achievements
Rank 1
Answers by
arnaud
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or