title: How to define custom html tags in ckeditor
body: <p>How can I define custom html tags in ckeditor.</p>
  
  <ul>
  <li>When user select a word e.g. Apple.</li>
  <li>Then I want to replace this with profileTag Apple /profileTag".</li>
  <li>But if the selected word already has a tag then it should append the profile tag.</li>
  <li>For example if anchorTag Apple /anchorTag then after user selection it will be profileTag anchorTag Apple /anchorTag /profileTag.</li>
  </ul>
  
  <p>The above thing is working. But when I execute the below code the output is null in case of custom html tag like profile tag.</p>
  
  <p>var current_selected_element = editor.getSelection().getSelectedElement();
  console.log(current_selected_element);</p>