/usr/share/composereditor/composereditorinitialhtml is in kf5-kdepim-apps-libs-data 4:16.04.2-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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | <html>
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<script type="text/javascript">
function getCurrentStyle(node, prop)
{
return document.defaultView.getComputedStyle(node, null).getPropertyValue(prop);
}
function getUserSelection()
{
var userSelection;
if (window.getSelection)
{
userSelection = window.getSelection();
}
else
{
return null;
}
return userSelection;
}
function setDeleteSelectedText()
{
var selObj = getUserSelection();
if( selObj != null ) {
if(selObj.rangeCount > 1) {
for(var i = 1; i < selObj.rangeCount; i++) {
selObj.removeRange(selObj.getRangeAt(i));
}
} else if( selObj.rangeCount == 1) {
selObj.deleteFromDocument();
}
}
}
function getTextForegroundColor()
{
var node = getUserSelection().anchorNode.parentNode;
return getCurrentStyle(node, "color");
}
function getTextBackgroundColor()
{
var node = getUserSelection().anchorNode.parentNode;
return getCurrentStyle(node, "background-color");
}
function getTextDirection()
{
var node = getUserSelection().anchorNode.parentNode;
return getCurrentStyle(node, "direction");
}
function getAlignment()
{
var node = getUserSelection().anchorNode.parentNode;
return getCurrentStyle(node, "text-align");
}
function getFontFamily()
{
var node = getUserSelection().anchorNode.parentNode;
return getCurrentStyle(node, "font-family");
}
function getHtml()
{
var node = document.getElementById("editableArea");
return node.innerHTML;
}
function replaceImageSrc(src, dest)
{
var html = getHtml();
var res = html.replace(src, dest);
replaceHtml(res);
}
</script>
</head>
<body id="editableArea" contenteditable="true" onMouseDown="javaScript:mouseEventHandler(event);"></body>
</html>
|