0
js & jQuery 함수를 사용하여 요소에 드래그 기능을 &이 가능하게하는 웹 페이지가 개발되었습니다. 완벽하게 작동합니다. 이제 CKEditor를 사용하여이 웹 페이지와 통합되었지만 요소를 놓을 때 &을 드래그 할 수없는 이유는 무엇입니까?js & jQuery가 CKEditor와 함께 사용 설정되지 않음
간단한 페이지 : 그것은 작동하고 난 &은 (드래그 & 드롭이 작동하지 않는 이유는 무엇입니까?)
<html> <head>
<link rel="stylesheet" href="jquery.ui.all.css"/>
<script src=jquery.js"> </script>
<script src="jquery_Drag_Drop.js"> </script>
<head> <body>
<div id="main_div_of_the_page">
<div id="element_1">
<input type="button" class="manage_to_all_properties_src"/>
</div>
<div id="element_2">
<input type="button" class="manage_to_all_properties_src"/>
</div>
</div>
</body> </html>
지금 내가 CKEditor이 페이지를 통합하고있는 요소
을 드래그 앤 드롭 할 수 있습니다<html> <head>
<script src=ckeditor.js"> </script>
<script src=jquery.js"> </script>
<script src="jquery_Drag_Drop.js"> </script>
<script type = "text/javascript">
window.onload = function() {
CKEDITOR.replace('main_div_of_the_page' );
} </script>
<head> <body>
<div id="main_div_of_the_page">
// Same innerHTML as above
</div>
</body> </html>
이제 CKEditor 을 수정했습니다.
CKEDITOR.editorConfig = function(config)
{
config.contentsCss = 'jquery.ui.all.csss';
}
감사합니다. AlfonsoML, 내가 다른 생각을하는 동안 나는 그것에 대해 생각하지 못했습니다. js 파일을 다운로드 한 후에도 이벤트를 호출하지 않는 것이 좋습니다. 어쨌든 당신은 내 의심을 없앴습니다. 정말 고맙습니다. –