problem with <div>

Last post 04-22-2009, 8:06 PM by goh6613. 3 replies.
Sort Posts: Previous Next
  •  04-22-2009, 6:08 AM 51361

    problem with <div>

    hi
     
    how can i set the style to apply to the div even if 1 one of the word is set to different color ?
     
    for example :
     
    <div style="position: absolute; width: 104px; height: 104px; top: 125px; left: 121px">Type text here</div>
    if red color is set to "here".......then my editior will automatically set red color to "Type text here" ?
     
    is it possible to do this ?
     
    thanks
  •  04-22-2009, 1:46 PM 51383 in reply to 51361

    Re: problem with <div>

    yes, please modify the CuteEditorconstants.js file.
     
    var layerdefaultstyle = "position:absolute;width:104px; height: 104px";

     
    Hope it helps.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-22-2009, 7:50 PM 51400 in reply to 51383

    Re: problem with <div>

    sorry, may i know where this file "CuteEditorconstants.js" is located ?
     
    i can found this file "CuteEditorImplementation.js" but not "CuteEditorconstants.js"...
     
    thanks
  •  04-22-2009, 8:06 PM 51401 in reply to 51400

    Re: problem with <div>

    i try to set at Constant.js, but the users still able to set different style within the same div,
     
    what i want is when user apply style (either font-family,font-szie, or color) for a single text within the div, the editior will automatically set to this :
     
    <div style="position: absolute; width: 104px; height: 104px; color: red; top: 0px; left: 0px">Type text</div>
    instead of
     
     <div style="position: absolute; width: 104px; height: 104px; top: 0px; left: 0px">Type <span style="color: red">text</span></div>
    what i mean is if "Text" is set to red color, editor will change the color of "Type text" to red instead of just change "Text" to red only
     
    is this possible to set in editor ?
     
    thanks
View as RSS news feed in XML