[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Customizing of Quill Editor  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

(copied from mail request into this forum)

We would like to use an HTML editor in our project to make the entered text formattable. The quill editor seems to us to be suitable. Among other things, this also offers the option of including images and videos. We would like to deactivate these buttons because we do not need these functions and embedded images greatly enlarge the underlying text. Is there a way to access the quill editor configuration to hide these buttons?

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

The quill editor (same with CKEditor and also with other embedded "external" frameworks: charjs, openstreetmap, ...) is embedded within an own iframe. In this iframe a "bridgepage" is started which actually connects the CaptainCasa-client-processing with the editor.

The default bridge page is:
Code:
 eclnt/risc/ext_quill/quillbridge.html
 


It is (as all CaptainCasa resources) contained in the eclntjsfserver-xxx.jar

You can define your own bridgepage easily - and in this one you can configure the quill editor by its JavaScript API. In the SIMPLEHTMLEDITOR-control there is an attribute BRIDGEPAGE - and this is exactly the page that is used to embed the editor.

When using the default page the definition is:


<t:simplehtmleditor ... bridgepage="eclnt/risc/ext_quill/quillbridge.html" ...>
</t:simplehtmleditor>
 


You you can write your own one by copying the default one e.g. in "eclnt/risc/ext_quill/myownbrifgepage.html" and there do "anything" you like. In the default file you will clearly see the location where Quill is initialized.

Important: please do no have the idea to place your own file into the eclntjsfserver-xxx.jar file...!

There are two options:
1. place it in your java-resources - so that CaptainCasa loads it by classloader reading
2. place in in the webcontent

Option 1. is clearly better, because your file is now part of your .jar file and as result is part of your .jar file - so that re-distribution in other projects is much simpler.

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team