Menu

Cursor Color

Help
2009-01-27
2013-04-29
  • Damana Mathos

    Damana Mathos - 2009-01-27

    Hi,

    In regular text boxes (like the form to post this message), the cursor is a solid black line.

    I noticed that in EditArea, the cursor seems to change to #CCC which makes it difficult to see.

    Is it possible to change the cursor color somehow to make it more visible? I couldn't seem to find the right spot for it in edit_area.css.

    Thanks,

    Thomas.

     
    • Damana Mathos

      Damana Mathos - 2009-01-28

      Hi,

      I just realised this is most likely a Mac-related problem rather than EditArea-related problem, as I noticed this only happens when using EditArea on my MacBook, and doesn't happen when I use it on my PC.

      On the PC the cursor is white, standing out nicely against my dark background.

      Thanks,

      Thomas.

       
    • Sgt.Nops

      Sgt.Nops - 2009-04-27

      I need to change the color of the cursor, cause i use a black background for the editor.
      So how to change it?

       
    • malpearson

      malpearson - 2009-08-18

      Hi, does anyone have any ideas on this?  edit_area.css doesn't seem to be where this is done.

       
  • Cyberdemon

    Cyberdemon - 2010-03-30

    Hi, I had the same problem and finally found it: manage_area.js, line 56:

    content = '<span>'+ content.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace("\r\r", '</span><strong>&nbsp;').replace("\r\r", '</strong><span>') +'</span>';

    the nbsp; after the strong tag let's the cursor be much bigger

     
  • Cyberdemon

    Cyberdemon - 2010-03-30

    If anybody can post in this thread: http://modxcms.com/forums/index.php?topic=10689.140 please update it (i don't want to register but found the thread first so I think it would be nice to have an answer there)

     
  • Anton Burtsev

    Anton Burtsev - 2010-08-14

    Hi,

    Great job cdemon, thank you!

    However, it is better to add a border instead of nbsp and add a negative padding to compensate border width. I've done as follows:

    content = '<span>' + content.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace("\r\r", '</span><strong style="border-right:1px solid black; padding-right:-1px;">').replace("\r\r", '</strong><span>') + '</span>';
    _______________
    Anton Burtsev
    http://xsltdb.codeplex.com

     
  • onejob

    onejob - 2012-05-14

    linlinying20120514
    tory burch outlet has just opened the coach outlet store online

     

Log in to post a comment.

MongoDB Logo MongoDB