Skip to content

Commit

Permalink
SAK-48398 Samigo: Question Text (above the ckeditor) very inconsisten…
Browse files Browse the repository at this point in the history
…t between question types
  • Loading branch information
kunaljaykam committed May 11, 2024
1 parent 171476d commit 90ff1af
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,3 +599,7 @@ table.table-bordered.dataTable {
background:#fff;
padding:0 10px;
}

label {
font-weight: bold;
}
35 changes: 18 additions & 17 deletions samigo/samigo-app/src/webapp/jsf/author/item/multipleChoice.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -241,23 +241,24 @@

<!-- 2 TEXT -->
<h:outputLabel for="questionItemText_textinput" value="#{authorMessages.q_text}" styleClass="col-md-2 form-control-label"/>
<div class="form-group row ">
<div class="col-md-8 row">
<div class="col-md-12">
<a id="multiple_show_editor" onclick="javascript:show_multiple_text(this);" href="#">
<h:outputText id="text" value="#{authorMessages.show_editors}"/>
</a>
</div>
<div class="col-md-12">
<!-- WYSIWYG -->
<h:panelGrid>
<samigo:wysiwyg identity="questionItemText" rows="140" value="#{itemauthor.currentItem.itemText}" hasToggle="plain" mode="author">
<f:validateLength maximum="60000"/>
</samigo:wysiwyg>
</h:panelGrid>
</div>
</div>
</div>
<div class="container">
<div class="col-md-8">
<!-- Rich-Text Editor Label -->
<div class="d-flex justify-content-end mb-1">
<a id="multiple_show_editor" class="toggle_link" onclick="javascript:show_multiple_text(this);" href="#">
<h:outputText id="text" value="#{authorMessages.show_editor}"/>
</a>
</div>
<!-- WYSIWYG Editor -->
<div>
<h:panelGroup layout="block" styleClass="w-100 d-flex justify-content-end">
<samigo:wysiwyg identity="questionItemText" rows="140" value="#{itemauthor.currentItem.itemText}" hasToggle="plain" mode="author">
<f:validateLength maximum="60000"/>
</samigo:wysiwyg>
</h:panelGroup>
</div>
</div>
</div>

<!-- 2a ATTACHMENTS -->
<%@ include file="/jsf/author/item/attachment.jsp" %>
Expand Down

0 comments on commit 90ff1af

Please sign in to comment.