[Xsltforms-support] custom buttons in TinyMCE (4.3.12) with XSLTForms (638)
Brought to you by:
alain-couthures
|
From: C. M. Sperberg-M. <cm...@bl...> - 2017-02-05 21:38:38
|
Short description: I don't seem to be having any luck making custom
buttons work with TinyMCE in XSLTForms. Can anyone help?
Details:
I am trying to use TinyMCE as an embedded editor for the mixed-content
elements in a project.
So far, I seem to have gotten partway to where I want to be -- but not
all the way. I have managed to
- identify what appears to be the most version of TinyMCE 4 that
does not freeze the form (version 4.3.12);
- add the appropriate XML elements to the editor as 'custom
elements';
- customize the list of 'valid elements' to include only my custom
elements and the XHTML elements which have the same local names as
elements in the project's XML vocabulary;
- style the new phrase-level elements, so the user can see that a
given sequence of characters is or is not tagged as a person's
name or as another phrase-level element.
The next step I'd like to take is to add custom buttons and menu items
for tagging and untagging phrase-level elements.
The sample page at [1] illustrates the addition of two buttons to a
TinyMCE editor instance, for tagging phrases as 'person' or (legal)
'procedure'. They could work better (they could be used to untag the
phrase, as the 'I' button can), but they manage to insert tags into
the data. The sample page at [2] shows the same customization of the
same version of TinyMCE, called through XSLTForms; the buttons don't
appear in the interface.
[1] http://tlrr.blackmesatech.com/2017/02/tests/tinymce.xhtml
[2] http://tlrr.blackmesatech.com/2017/02/tests/xsltforms.xhtml
Apparently I'm doing something wrong. Undying gratitude and as much
beer as you can drink, the next time we are at a conference together,
await the reader of this list who can help me find and fix the problem.
Michael Sperberg-McQueen
********************************************
C. M. Sperberg-McQueen
Black Mesa Technologies LLC
cm...@bl...
http://www.blackmesatech.com
********************************************
|