HTML-Editor

Danke dir.

Gibt es API zu TinyMCE?


Ich habe folgendes:

HTML:
<script>
  editor.addButton('Image', {
        text: 'Image',
        icon: false,
        onclick: function() {
            // Open window
            editor.windowManager.open({
                title: 'Image',
                body: [
                    {type: 'textbox', name: 'url', label: 'URL'},
                    {type: 'textbox', name: 'title', label: 'Title'},
                    {type: 'textbox', name: 'width', label: 'Width'},
                      
                   
                ],
                onsubmit: function(e) {
                    // Insert content when the window form is submitted
                    editor.insertContent('<img src="'+e.data.url+'" title="'+e.data.title+'" style="width:'+e.data.height+'px; height:'+e.data.height+'px;"/>');
                }
            });
        }
    });
</script>

ich füge da 3 Inputfelder, gibt es auch eine Möglichkeit SelectBox und FileUpload einzufügen?


Danke!
 
Zurück