Link to home
Create AccountLog in
Experts Exchange

Experts Exchange

--

Questions

--

Followers

Top Experts

Avatar of HainKurt
HainKurt🇨🇦

WSYGI editor: code is messed up
Hi everybody...

for a couple of days, I see my code is just messing up when I answer a question, and use
User generated image
it adds lost of lıne numbers left and right and code here is just unreadable...
look at this
User generated image
check this

https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803

when you click "select all" it selects the code, not those line numbers
and when you copy paste to another place you get the right code...

I checked different browsers and FF is also showing those messed up numbers...

is it only me, or everybody is having the same issue?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of David Johnson, CDDavid Johnson, CD🇨🇦

I've tried many ways to reproduce this and can't reproduce it.. can you reproduce it on demand?

Avatar of HainKurtHainKurt🇨🇦

ASKER

"ondemand"
what you mean?
whenever I use that code snippet, everything is messed up...
started happening like 1 week ago...
now, all of my codes looks strange, with readonly line numbers scattered everywhere in the code...

Avatar of HainKurtHainKurt🇨🇦

ASKER

Line 1
if contion then
   do something
   do something else
else
   else do this
   do that
end if
Line 2
Line 3

Open in new window

lets see this...
cannot do that with above code... strange

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of HainKurtHainKurt🇨🇦

ASKER

lets try this

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window


Avatar of HainKurtHainKurt🇨🇦

ASKER

my previous post is messed up
I got the code from
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803
maybe some special character, like "//"

Avatar of HainKurtHainKurt🇨🇦

ASKER

wil post something with "//" inside
//comment 1
if this then
  // common cases
  do this
else
  // rare cases
  do something else
end if

Open in new window

should look like below, got from preview before post
User generated image

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of HainKurtHainKurt🇨🇦

ASKER

is it "."  or ":" ?

line 1
obj1.field1
obj2:field2
obj3:field3.field4

Open in new window

no... not sure, how to produce it...
but if it happens, I cannot fix it...
after post, all code is messed up...

Avatar of HainKurtHainKurt🇨🇦

ASKER

will try this code
case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window

should look like
User generated image
not happening now...
confused... cannot reproduce...

Avatar of HainKurtHainKurt🇨🇦

ASKER

look at this
User generated image
got it from
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189807 

hex edit\ notepad++
User generated image
dont see anything strange here...

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Scott FellScott Fell🇺🇸

Can you do a screen video of what you are experiencing?  Then post that to the feedback link found at the footer of the page. I have had similar issues and have been promising to do a screen video myself. 

Avatar of HainKurtHainKurt🇨🇦

ASKER

Can you do a screen video of what you are experiencing? 

simple

go to this link
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803 

copy the code
open code snippet here
paste and post/preview

that's all

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window

I see this on screen now, but after post it will be messed up, I guess
User generated image

Avatar of HainKurtHainKurt🇨🇦

ASKER

you see in my previous post...
no need for video, all steps are above...

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Scott FellScott Fell🇺🇸

If you see the feedback link at the bottom left of the footer, use that and submit to Kasey.

Avatar of HainKurtHainKurt🇨🇦

ASKER

same thing happened again
new code, just one line

see my comment/code here

Avatar of HainKurtHainKurt🇨🇦

ASKER

If you see the feedback link at the bottom left of the footer, use that and submit to Kasey. 

I did, they said "they are aware of it" but no idea what is causing it, how to re-produce it, how to fix it on my side...

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Scott FellScott Fell🇺🇸

There are 2 work arounds.

1) Using "Visual" editor. Right click where you want to paste and paste as plain text, Then select what you pasted and select the code option. This is the result.
case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window

That was a direct paste from copying the code in your link.

2) Set the the comment box to "Text" instead of "Visual". Plaste your code and again select the code feature or just wrap the code in mark down using
[code] code here [/code] 

Avatar of HainKurtHainKurt🇨🇦

ASKER

1) Using "Visual" editor. Right click where you want to paste and paste as plain text, Then select what you pasted and select the code option. This is the result. 
I am using visual editor all the time. if I do what you say, all text EOL lines and indent is lost
and here what is result

case "1":   // Query 1   SqlDataSource1.SelectCommand = "select * from Table1";   break; case "2":   // Query 2   SqlDataSource1.SelectCommand = "select * from Table2";   break; case "3":   // Query 3   SqlDataSource1.SelectCommand = "select * from Table3"; break; 

Open in new window


Avatar of HainKurtHainKurt🇨🇦

ASKER

my previous post is what you said...
result is terrible... all formatting lost and those strange numbers are there as well...
the code is copied from your post...
User generated image

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of HainKurtHainKurt🇨🇦

ASKER

<blockquote><span style=" text-align: left;">2) Set the the comment box to &quot;Text&quot; instead of &quot;Visual&quot;. Plaste your code and again select the code feature or just wrap the code in mark down using</span><br style=" text-align: left;"><span style=" text-align: left;">
 code here 

Open in new window

&nbsp;</span>&nbsp;</blockquote><br>now, lets do this<br><br>

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window


Avatar of HainKurtHainKurt🇨🇦

ASKER

text option is worse...
look at my previous post
I did what you said...

are you saying, dont use visual at all?

User generated image

Avatar of HainKurtHainKurt🇨🇦

ASKER

2) Set the the comment box to "Text" instead of "Visual". Plaste your code and again select the code feature or just wrap the code in mark down using
 code here 

Open in new window


now, I use text, from the beginning...

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window


looks like this will be ok, but this is not the solution...
I want to use visual thing, that's why this editor is WSYGI

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of HainKurtHainKurt🇨🇦

ASKER

my previous post is result of this
but in text mode, I cannot copy paste images, which I do a lot in my posts...
User generated image

Avatar of HainKurtHainKurt🇨🇦

ASKER

looks like EE is using

 * froala_editor v2.6.5 (https://www.froala.com/wysiwyg-editor)

User generated image

maybe it is old version, maybe files are messed up in cloud...
maybe css is not updated or some scripts are from old version

not sure what is the issue...

Avatar of Scott FellScott Fell🇺🇸

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window


Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Scott FellScott Fell🇺🇸

Check this video out and see if you can duplicate


Avatar of HainKurtHainKurt🇨🇦

ASKER

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window


Avatar of HainKurtHainKurt🇨🇦

ASKER

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window

previous is what you asked for...
this one is, I added code snippet first and pasted as plain text
lets see if this one works too...

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of HainKurtHainKurt🇨🇦

ASKER

ok, so both worked fine...
"paste as plain text" works fine...
now I will try it with the link
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window


Avatar of HainKurtHainKurt🇨🇦

ASKER

it worked as well...
so, the issue is "paste"
when I use "paste as plain text" it gets messed up...
I am using Chrome canary by the way...
User generated image


Avatar of HainKurtHainKurt🇨🇦

ASKER

last try, with paste, just to confirm "paste" vs "paste as plain text"

case "1":
  // Query 1
  SqlDataSource1.SelectCommand = "select * from Table1";
  break;
case "2":
  // Query 2
  SqlDataSource1.SelectCommand = "select * from Table2";
  break;
case "3":
  // Query 3
  SqlDataSource1.SelectCommand = "select * from Table3";
break;

Open in new window

above is code snippet first + paste inside

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of HainKurtHainKurt🇨🇦

ASKER

ok, issue is understood...
"paste" does not work...
"paste as plain text" works...

Avatar of Scott FellScott Fell🇺🇸

That's why I asked for a video screen cast.

Well, it is not an ideal situation but the workaround works.

The issue I believe lies in the froala editor. It just does not work well for code in the manner we want to use it. It is a real bear to work with. 

Avatar of HainKurtHainKurt🇨🇦

ASKER

That's why I asked for a video screen cast.
I never used "paste plain text" before...
it was fine, till last week...
something updated on EE or froala editor...

but, why I don't see this in other posts?
is everybody using "paste as plain text"? I don't think so...
so, why just me?

can you re-produce the issue with "paste"?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Scott FellScott Fell🇺🇸

Yes I can reproduce it and I have been using paste as plain text ever since this new editor. The only time I don't have to use paste as plain text is when the editor is set to Text instead of Visual. It is possible that you had that set to text?  I don't know but using the code feature has always been a mess with the froala editor.

I think enough of us have expressed concern and as they told you it is a known issue. All we can do is move on.

Avatar of HainKurtHainKurt🇨🇦

ASKER

I can use "text" mode,
but
I dont want to, since I add screenshots and use styling a lot...


ASKER CERTIFIED SOLUTION
Avatar of Scott FellScott Fell🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account
Experts Exchange

Experts Exchange

--

Questions

--

Followers

Top Experts

This is the Experts Exchange Community Hub. Check here for updates from EE and news about our community and members!