Hello.
I have noticed (in Chrome 19.0.1084.56 m) that blockquote functionality in wmd editor doesn't work as it should.
This is what is generated:
Blockquote
Blockquote> BlockquoteBlockquote
Blockquote
However, in Mozilla (13.0.1), it works!
Does any of you face similar problems? Do you have any suggestions?
Find this solution and verified it fixed this issue on Chrome (solution from http://meta.stackoverflow.com/users/159266/dipesh-kc): http://meta.stackoverflow.com/questions/63307/blockquote-glitch-in-editor-in-chrome-6-and-7
We need to fix the file: askbot/skins/common/media/js/wmd/wmd.js
@@ -21,6 +21,7 @@ Attacklab.wmdBase = function(){
// Used to work around some browser bugs where we can't use feature testing.
+ global.isChrome = /chrome/.test(nav.userAgent.toLowerCase());
global.isIE = /msie/.test(nav.userAgent.toLowerCase());
global.isIE_5or6 = /msie 6/.test(nav.userAgent.toLowerCase()) || /msie 5/.test(nav.userAgent.toLowerCase());
global.isIE_7plus = global.isIE && !global.isIE_5or6;
@@ -1599,6 +1600,11 @@ util.prompt = function(text, defaultInputText, makeLinkMarkdown, dialogType){
var regexText;
var replacementText;
+ // workaround for broken blockquote under Chrome.
+ if (global.isChrome) {
+ "X".match(/()./)
+ }
+
this.selection = this.selection.replace(/(^\n*)/, "");
this.startTag = this.startTag + re.$1;
this.selection = this.selection.replace(/(\n*$)/, "");
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-06-23 17:45:30 -0500
Seen: 77 times
Last updated: Aug 22 '12
Internal Server Error when trying to edit personal pro
Where are the badges in a fresh install? [fixed]
HTML Tags in titles getting eaten <fixed/>
Unknown column 'auth_user.is_approved' in 'field list' [fixed]
email for comments: link missing a href [fixed]
Bug: Horizontal Rule in Comment breaks stylesheet [fixed]
"Related questions" section shows deleted questions?
error on upvote: "Sorry, something is not right here..." [fixed]
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
I do confirm the bug.
rornvi ( 2012-06-24 13:41:06 -0500 )edit