Curiously enough, this seems to work just fine if i delete everything on the page, center the text, and then left justify the text (basically reverting the defaults).
What's weird is this is working on production, but failing on development, even though I didn't make any changes to FCKeditor files.
Re: Strange behavior in FCKeditor - automatically creating n
What's weird is this is working on production, but failing on development, even though I didn't make any changes to FCKeditor files.
Re: Strange behavior in FCKeditor - automatically creating n
This code grabs the content out of the FCKeditor instance and computes how many characters there are (any how man are left to go)
function FCKeditor_OnComplete() { FCKeditorAPI.GetInstance(editorName).Events.AttachEvent( 'OnSelectionChange', getFCKLength ); document.getElementById('charCount').innerHTML = maxChar - FCKeditorAPI.GetInstance(editorName).GetHTML().length; } function getFCKLength() { document.getElementById('charCount').innerHTML = maxChar - FCKeditorAPI.GetInstance(editorName).GetHTML().length; } FCKeditor_OnComplete();Each time it fires, it closes the <p> tag and starts a new one, causing the behavior seen in the video.
This worked fine for almost a year before suddenly breaking. Any suggestions?
Re: Strange behavior in FCKeditor - automatically creating n
Re: Strange behavior in FCKeditor - automatically creating n
is triggering the line break. Not sure how to get around this....