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

[Solved] Text Formatting Issue in Chrome

1 Answer 9 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 05 Oct 2012, 01:21 PM
Hi,

I have found an issue with the MVC Extensions in Chrome, the issue is repeatable in the online demo (http://demos.telerik.com/aspnet-mvc/razor/editor) using the following steps:
  1. Highlight the default text in the editor using Ctrl + A then delete the text.
  2. Write some text.
  3. Highlight all of the text, either via the mouse of Ctrl+A.
  4. Apply a style (bold/italic/underline/strikethrough) to the text via the toolbar or keyboard shortcut.
  5. Delete the text.
  6. Type further text.
  7. Try to remove the styling (applied in 4) from the text; you can't.

OS: Windows 7
Chrome: 22.0.1229.79 m

Has anyone else seen (fixed) this behaviour?

Thanks in advance for any help.

1 Answer, 1 is accepted

Sort by
0
Menelik
Top achievements
Rank 1
answered on 16 Oct 2012, 11:11 AM
We've had the same issue. Not found a fix yet. Looks like the issue is: The 'B', 'I', and 'U' formatting tools all render XHTML tags/markup eg: 'B' = <strong>..., 'I' = <em>..., and (strangely) 'U' = <span style="text-decoration: underline">... However when attempting to replicate the last known formatting state (a standard "feature in WYSIWYG editors"), Google Chrome renders HTML5 tags/markup eg:  'B' = <b>..., 'I' = <i>..., and 'U' = <u>... Therefore when the user then tries to unformat the formatted content, the editor adds/removes XHTML tags/markup and does nothing with the HTML5 tags/markup generated by chrome! The HTML5 markup rendered by chrome however is NOT stored when the content is posted/stored to the database!

I'll post any updates.
Tags
Editor
Asked by
Michael
Top achievements
Rank 1
Answers by
Menelik
Top achievements
Rank 1
Share this question
or