나는 colorbox를 통해 표시되는 팝업에 wysiHtml5 텍스트 영역이 있습니다는 colorBox에서 텍스트 영역을 wysihtml5을 가져올 수 없습니다
$j.colorbox({
inline: true,
href: "#popup",
scrolling: false,
onLoad: function() {
$('#cboxClose').remove();
},
onCleanup: function() {
$j("div#popup").hide();
},
onClosed: function() {
editor = null;
},
onComplete: function() {
var editor = new wysihtml5.Editor("wysiwygText", { // id of textarea element
toolbar: "wysihtml5-toolbar", // id of toolbar element
parserRules: wysihtml5ParserRules, // defined in parser rules set
stylesheets: ["Styles/wysihtml5.css", "Styles/wysihtml5.css"]
});
}
});
에디터 잘 최초의 작동을 colorbox가 튀는 시간. 그러나 닫히고 다시 열린 경우 사용자는 편집기를 클릭 할 수 없습니다.
에디터 개체를 다시 만들려고하는 것과 관련이 있는지 궁금합니다. 문제는 컬러 박스가 시작되기 전에 컬러 박스를 만들면 컬러 박스가 시작될 때 편집기가 깨지게된다는 것입니다. (예 : #popup을 표시하도록 설정하면 페이지가로드 될 때 편집 할 수 있지만 색상 상자를 실행하면 다시 내용을 편집 할 수 없습니다.
동작은 텍스트를 볼 수 있습니다. 지역,하지만 난 그것을 "에 클릭"수 없습니다.
JQuery Dialog를 사용 했습니까? (아직 시도하지는 않았지만 다음 단계였습니다) – Ben
예, Fyi, bootstrap-wysihtml5를 사용하고 있습니다. [link] (https://github.com/) jhollingworth/bootstrap-wysihtml5) – MageNewbie