我正在做一个项目,在这个项目中,我需要传递在加载CKEditor之前所做的数据选择。
/**
* Get text selection.
*/
Drupal.xeditor.getSelection = function() {
var text = "";
if (window.getSelection) {
text = window.getSelection().toString();
}
else if (document.selection && document.selection.ty