0
我有插件CKeditor,當我用「$ 100」寫文本時,ckeditor在保存時刪除此字符串。我如何解決這個問題?
JS:當我加載CKEDITOR,並配置此
<script type="text/javascript">
jQuery(document).ready(function() {
CKEDITOR.config.allowedContent = true;
CKEDITOR.config.extraPlugins = 'dragresize,jsplus_stat';
var editorMd = CKEDITOR.replace('edit_md', {contentsCss: '/css/tools.css'});
var editorRu = CKEDITOR.replace('edit_ru', {contentsCss: '/css/tools.css'});
var editorEn = CKEDITOR.replace('edit_en', {contentsCss: '/css/tools.css'});
//CKFinder.SetupCKEditor(null, '/js/ckfinder3/');
//CKEDITOR.config.wordcount = {showWordCount: true}
CKEDITOR.config.filebrowserBrowseUrl = '/js/kcfinder/browse.php?opener=ckeditor&type=files';
CKEDITOR.config.filebrowserImageBrowseUrl = '/js/kcfinder/browse.php?opener=ckeditor&type=imagesnew';
CKEDITOR.config.filebrowserFlashBrowseUrl = '/js/kcfinder/browse.php?opener=ckeditor&type=flash';
CKEDITOR.config.filebrowserUploadUrl = '/js/kcfinder/upload.php?opener=ckeditor&type=files';
CKEDITOR.config.filebrowserImageUploadUrl = '/js/kcfinder/upload.php?opener=ckeditor&type=imagesnew';
CKEDITOR.config.filebrowserFlashUploadUrl = '/js/kcfinder/upload.php?opener=ckeditor&type=flash';
//CKFinder.setupCKEditor(null);
/*
CKFinder.setupCKEditor(null, {
skin: 'moono',
swatch: 'b',
onInit: function(finder) {
finder.on('files:choose', function(evt) {
var file = evt.data.files.first();
//console.log('Selected: ' + file.get('name'));
});
}
});
*/
/*
CKEDITOR.editorConfig = function(config) {
config.filebrowserBrowseUrl = '/js/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '/js/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '/js/kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '/js/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '/js/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '/js/kcfinder/upload.php?opener=ckeditor&type=flash';
};
*/
jQuery('#date_show').datetimepicker({
locale: 'en',
format: 'YYYY-MM-DD HH:mm:ss'
});
});
function openMedia() {
window.open('<?=$adminRoot . 'news/media/id/' . $item->id . '/'?>', '_blank', 'width=800,height=600');
return false;
}
</script>
代碼。請幫我解決這個問題。