id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 8647,Placeholder plugin bug,dgaspar,,"In the placeholder demo: http://nightly.ckeditor.com/7350/_samples/placeholder.html Here's how to reproduce the bug (chrome mac): - Fully erase the demo text - add a placeholder, ex: MY_VARIABLE - switch to source - switch back to html - select part of the placeholder with the mouse (ex: select ""IABLE]"") - press ctl+'''b''' The placeholder is now broken: {{{

[[MY_VAR  IABLE]  ]

}}} And an error is triggered: _source/styles/plugin.js, line 465: ''Uncaught TypeError: Cannot call method 'getPosition' of null'' {{{ if (currentNode.getPosition( lastNode ) == CKEDITOR.POSITION_FOLLOWING ) currentNode = 0; }}} It should probably be: {{{ if ( currentNode && currentNode.getPosition( lastNode ) == CKEDITOR.POSITION_FOLLOWING ) currentNode = 0; }}} [[BR]] [[BR]] Bonus: another bug when - select the whole placeholder text - ctrl+'''b''' - now select just a part of the placeholder string (in '''bold''') - ctrl+'''b''' again The placeholder is now broken. {{{

This is a [[sample placeholder]]. You are using CKEditor.

}}}",Bug,closed,Normal,,General,3.5,fixed,Mac,