/usr/lib/python2.7/dist-packages/sagenb/data/sage/html/notebook/text_cell.html is in python-sagenb 1.0.1+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | {#
INPUT:
- cell -- Cell instance
- wrap -- number of columns to wrap
- do_print -- whether to display for printing
- editing -- whether user is editing the cell
- publish - a boolean; whether this is a published cell
#}
<span id="cell_outer_{{ cell.id() }}">
{% if not do_print and not publish and not cell.worksheet().docbrowser() %}
<div class="insert_new_cell" id="insert_new_cell_before{{ cell.id() }}">
<div class="ui-icon ui-icon-circle-plus wksht-icon_button"
id="insert_new_compute_cell_before{{ cell.id() }}"
title="{{ gettext('Click to insert new compute cell.') }}"></div>
<div class="ui-icon ui-icon-comment wksht-icon_button"
id="insert_new_text_cell_before{{ cell.id() }}"
title="{{ gettext('Click to insert new rich-text cell.') }}"></div>
<div class="legacy_insert_new_cell" id="legacy_new_cell_before{{ cell.id() }}"></div>
</div>
<script type="text/javascript">
$("#insert_new_compute_cell_before{{ cell.id() }}").bind("click",function (e) {
insert_new_cell_before({{ '%r'|format(cell.id()) }});
});
$("#insert_new_text_cell_before{{ cell.id() }}").bind("click",function (e) {
insert_new_text_cell_before({{ '%r'|format(cell.id()) }});
});
$("#legacy_new_cell_before{{ cell.id() }}").bind("click",function (e) {
if (e.shiftKey){
insert_new_text_cell_before({{ '%r'|format(cell.id()) }});
} else {
insert_new_cell_before({{ '%r'|format(cell.id()) }});
}
});
</script>
{% endif %}
<div class="text_cell" id="cell_text_{{ cell.id() }}">
{{ cell.plain_text() | safe }}
</div>
{% if JEDITABLE_TINYMCE and not cell.worksheet().is_published() and not cell.worksheet().docbrowser() and not do_print and not publish %}
<script type="text/javascript">
$("#cell_text_{{ cell.id() }}").unbind('dblclick').editable(function (value, settings) {
evaluate_text_cell_input({{ '%r'|format(cell.id()) }}, value, settings);
return(value);
}, {
tooltip : "",
placeholder : "",
// type : 'textarea',
type : 'mce',
onblur : 'ignore',
select : false,
submit : "{{ gettext('Save changes') }}",
cancel : "{{ gettext('Cancel changes') }}",
event : "dblclick",
style : "inherit",
data : {{ cell.plain_text()|repr_str| safe }}
});
</script>
{% endif %}
{% if editing and not do_print %}
<script>
$("#cell_text_{{ cell.id() }}").trigger('dblclick');
</script>
{% endif %}
</span>
|