On 08/26/2018 10:13 PM, Leif Halvard Silli wrote:
For text elements (such as a, s, b, i etc), if you select a piece of
text, and insert the element (by clicking on its button, such as the
link-button), the entire selected text is included inside the newly
inserted element.
For img elements, if you do the same, the img element gets inserted
before (or after) the selected text. Meaning that you must manually
delete the text, if that is what you planned to do.
(Even if the element where you inserts the img element is empty, "the
emptyness" is placed to the right of the img element. And thus it
appears as a space character you must delete if you want there to be no
space.)
* I would like that
o Selecting a valid URL-compatible text before clicking the IMG
button, the selected text should be used as src.
o Selecting a valid URL+text = <img src=URL alt=text >
We don't think the feature you request is useful in the general case.
An img is very different from a, s, b, i, etc, *text-level* elements and
we fail to see why it should be treated the same.
I'm sorry but your RFE will not be implemented. If you really need it
for your specific use case, it's always possible to implement it
yourself using a macro-command (added to your customize.xxe).
See "Chapter 2. Writing macro-commands" in
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/writing_macros.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support