WORKAREA SECTIONPAGERTEALIGNPREVIEW : AADHAVAN
This commit is contained in:
parent
8792c8653c
commit
c8c6cb6723
@ -201,7 +201,7 @@ function QuestionPaperPreview(jsonData){
|
||||
// questionGroupMark = questionGroupMark.replace('<p id="group_marks">', '<p id="group_marks" hidden>')
|
||||
// }
|
||||
|
||||
questionPaper += `<div class="text-group-align" style="margin-left:-1px;">${questionId})${questionGroupmodify}</div>`
|
||||
questionPaper += `<div class="text-group-align" style="margin-left:0px;">${questionId})${questionGroupmodify}</div>`
|
||||
|
||||
questionPaper += `<div class="group_marks_attmpt">${questionGroupAttempt}${questionGroupMark}</div>`;
|
||||
// questionPaper += `<div class="group_attempt_any">${questionGroupAttempt}</div>`;
|
||||
|
||||
@ -50,9 +50,15 @@
|
||||
|
||||
|
||||
<style>
|
||||
.group_Text{
|
||||
margin-top: -28px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.ql-align-justify{
|
||||
|
||||
}
|
||||
|
||||
|
||||
.ql-align-right{
|
||||
inline-size: 700px;
|
||||
@ -606,6 +612,51 @@ var intervalId = setInterval(quilltableclassname, 1000);
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
function thisclassnameWhenPaste() {
|
||||
var a =document.querySelectorAll('.text-group-align');
|
||||
|
||||
//add the question_text class name for Justify Algin in question
|
||||
a.forEach(function (aa) {
|
||||
var elements = aa.querySelectorAll('.ql-align-justify');
|
||||
elements.forEach(function(element) {
|
||||
|
||||
element.classList.add('group_Text');
|
||||
element.style.paddingLeft = '15px';
|
||||
// element.classList.remove('ql-align-justify')
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
a.forEach(function (aa) {
|
||||
var elements = aa.querySelectorAll('.ql-align-right');
|
||||
elements.forEach(function(element) {
|
||||
|
||||
element.classList.add('group_Text');
|
||||
element.style.paddingLeft = '15px';
|
||||
// element.classList.remove('ql-align-justify')
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
a.forEach(function (aa) {
|
||||
var elements = aa.querySelectorAll('.ql-align-center');
|
||||
elements.forEach(function(element) {
|
||||
|
||||
element.classList.add('group_Text');
|
||||
element.style.paddingLeft = '15px';
|
||||
// element.classList.remove('ql-align-justify')
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
setInterval(thisclassnameWhenPaste, 1000);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
12
addform.html
12
addform.html
@ -1341,11 +1341,19 @@ function clearMessage() {
|
||||
var mathJaxContainer = document.getElementById('workarea_math');
|
||||
var quillContainer = document.getElementById('workarea');
|
||||
|
||||
var quillInstance = new Quill('#workarea');
|
||||
quillInstance.setText('');
|
||||
var quillInstance = quillContainer.querySelector('.ql-editor');
|
||||
|
||||
if (quillInstance.innerHTML.trim() !== '<p><br></p>') {
|
||||
quillInstance.innerHTML = '<p><br></p>';
|
||||
}
|
||||
|
||||
|
||||
// var quillInstance = new Quill('#workarea');
|
||||
// quillInstance.setText('');
|
||||
|
||||
// console.log(mathJaxContainer);
|
||||
// console.log(quillContainer);
|
||||
|
||||
mathJaxContainer.value = "";
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user