Add Button to Editor Modal window beneath a field

Add Button to Editor Modal window beneath a field

QuaselQuasel Posts: 18Questions: 3Answers: 0

i would like to have a TableTools button right after a select field - it will open a different editor to let the user add an entry for the select field wich doesn't exist jet - e.g. create a new "Depatment" wich needs more information than just a name ... and on save opens up the old editor again ...

i can do:
$(editor.field('select-field').node()).append("fill in some html to create button")
and then add .on() etc

is their an easier way i did miss?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    To modify the field DOM structure, either the method you suggest or creating a custom field type with the HTML you want, is the way to do it.

    Regards,
    Allan

  • QuaselQuasel Posts: 18Questions: 3Answers: 0
    edited December 2014

    Thx - guess ill stick to my Version as its just a button to add don't want to create a whole new type - as i just want to add a button ... its more like extending ;)

This discussion has been closed.