| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 10013|Reply: 18
Collapse the left

automatically generated stars in RTL txt editor

[Copy link]
Post time: 2013-07-29 00:42
| Show all posts |Read mode
Zuletzt bearbeitet von mj1919 um 2013-7-29 01:47

in this first lines
*i used
*arabic view language
*for writing!!!!!!!!!!!!!!!!!
*
*you see
*that
*when i hit
*
*enter button
*my line goes to next
*but there is a bug
*
*because
*that stars
*generated
*automatically!
*
*in other word some thing in RTL text editor is wrong
*
*

now i post this thread in RTL, Arabic View
*and i want to reply a post in English view to this thred

P.S. (wroten in LTR)
another thing:
this bug is only in fultext editor, (no in guick text).
You can test this bu, here!


 Author| Post time: 2013-07-29 00:43
| Show all posts
in De language view,
i posted.

you see

in this
post

after i hit

Enter

NO stars shown


this bug is in RTL only

 Russia

Post time: 2013-07-30 09:17
| Show all posts
12
*

Ok, I see!

 Russia

Post time: 2013-07-30 10:42
| Show all posts
It is a strange bug.
The ENTER key handler works ok when I trace the javascript code,
but does not work when I stop tracing... does not perform the "backspace" command...
 Author| Post time: 2013-08-22 15:42
| Show all posts
what is related js file?
we can use Uyghurian version file for this? i checked on local host, they have not this bug.

 Russia

Post time: 2013-08-22 16:05
| Show all posts
/static/js/editor.js

Rate

Number of participants 1Rating +1 Collapse Reason
mj1919 + 1

View Rating Log

 Palestine

Post time: 2013-08-22 19:51
| Show all posts
in chrome work good without *

 Author| Post time: 2013-08-22 19:58
| Show all posts
khalid 2013-8-22 20:51
in chrome work good without *

yes you right!
i am writing
in
google
chrome
in arabic
!!!!!!!

whats wrong?!!!???!



 Russia

Post time: 2013-08-22 20:28
| Show all posts
whats wrong?!!!???!

Get the editor.js from Uygur forum and compare it with our file!

Comments

OK, but the matter is time!  Post time 2013-08-22 20:38

 Palestine

Post time: 2013-08-28 08:51
| Show all posts
Edited by khalid at 2013-8-28 07:55
vot 2013-8-22 19:28
Get the editor.js from Uygur forum and compare it with our file!

Fixed

the problem form this code in editor.j file
  1. if(ctlent_enable[13] && event.keyCode == 13 && wysiwyg && $(editorid + '_insertorderedlist').className != 'hover' && $(editorid + '_insertunorderedlist').className != 'hover') {
  2.                 if(!BROWSER.opera) {
  3.                         insertText('
  4. *', 5, 0);
  5.                 } else {
  6.                         insertText('
  7. ', 5, 0);
  8.                 }
  9.                 keyBackspace();
  10.                 doane(event);
  11.         }
  12.         if(ctlent_enable[9] && event.keyCode == 9) {
Copy the Code
replace with

x3 editor code
  1. if(ctlent_enable[9] && event.keyCode == 9) {
  2.                 if(!wysiwyg) {
  3.                         insertText('\t', 1, 0);
  4.                 }
Copy the Code
it's work good

Rate

Number of participants 1Rating +1 Collapse Reason
mj1919 + 1 Very nice!

View Rating Log

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-21 23:54 GMT+3 , Processed in 0.084950 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list