You can read more on my blog about how to do this - >
here.
At some stage you will notice that your page might stop working. This will be due to size restrictons on your page item and limitation with character limits.
If this happens please check this follow up blog that might help in that situation.
Fetch CLOB size text on page load and submit page