title: MediaWiki VisualEditor textcolor
body: <p>I'm trying to extend the VisualEditor by adding custom functionality.</p>
  
  <p>It was pretty easy to add stuff which is realized with a single HTML-tag without parameters. But now I try to add textcolor. I tried to replicate the LanguageAnnotation as that's pretty similar (using span lang=.. while I want span style=color:..). </p>
  
  <p>But it looks like there are a lot more things which I have to change here &amp; I don't understand.</p>
  
  <p>I'd be very grateful for any kind of help here.</p>
  
  <p>Edit: To provide more information: Currently I am trying to replicate the .toDomElements function which I struggle with because I can not find the place where to modify the exact tag syntax (style instead of lang).</p>