dev-master
9999999-devThis ODT file editor for Elgg.
GPL-2.0
The Requires
plugin elgg odt
This ODT file editor for Elgg.
Allows the online editing of ElggFile objects that are text documents in the OpenDocument format (OpenDocument Text, file extension .odt), (*1)
The ODT editor uses Wodo.TextEditor from the WebODF project., (*2)
This module should run after installation without any setup needed., (*3)
There are some customisations possible:, (*4)
The template for new ODT documents is located in
mod/odt_editor/data/template.odt
. To use an own ODT document as template
replace that file with the own file., (*5)
The list of fonts which is offered in the font selectors, next to the
fonts used in the current document, is controlled by the file
mod/odt_editor/vendors/wodotexteditor/resources/fonts/fonts.css
., (*6)
Each font is registered with a normal @font-face
CSS rule. A font can either
be expected to be installed on the computers where the clients run their
browser or it can be installed on the server, to ensure it is available to
all users.
The font files can be installed on the server whereever it suits, as long as
their location is correctly given in the fonts.css
file., (*7)
There is a font with the font-family name "Gentium Basic". The data of this font is in a file GenBasR.ttf
., (*8)
Because the font should be made available to all users, the file with the font data is installed on the Elgg server.
It has been placed in mod/odt_editor/vendors/wodotexteditor/resources/fonts
., (*9)
So it will be listed in fonts.css
as, (*10)
@font-face { font-family: "Gentium Basic"; src: url("./GenBasR.ttf") format("truetype"); font-weight: normal; font-style: normal; }
When relying on the font being installed on the computer of the users, the file with the font data would not be installed on the server.
The snippet for fonts.css
would be the same as above, but without the src
line:, (*11)
@font-face { font-family: 'Gentium Basic'; font-weight: normal; font-style: normal; }
None yet, please file any issue you experience., (*12)
This ODT file editor for Elgg.
GPL-2.0
plugin elgg odt