Include widget in .getValue() ?

Is there a way we can include codemirror widgets in .getValue() ?

Currenly, when getting the value, if there is a widget it just displays as a blank line in .getValue().

So, can I display the text of each widget on it’s corresponding line with .getValue() ?

No. getValue returns the content of the editor, widgets aren’t part of that (they may replace part of that content, but they aren’t part of it).

Are there any methods of inserting a clickable element that will be included in editor.getValue() ?

No, the content of the editor is just text, which doesn’t include a concept of clickability.