well, as codepen doesn't work on windows mobile maybe i'll go with example?
apols thats not going to be very useful for anyone using windows mobile at time of writing who isn't a coder, but for the rest of you i get you guess the concept - its not magic, it does not have to be a lot of code.
i think Damyon is now getting some self written, from scratch, huge undertaking, dependent on yui editor into core, which seems to not address any of the issues in the thread.
discussion about it is here - https://moodle.org/mod/forum/discuss.php?d=240774