Hey gang, seemingly simple question that this forum and SO are leaving me high-and-dry on.
Right now, I have a textarea that I want to store/edit HTML in. As a textarea, it works just fine- reads/writes from the server and displays on the page correctly. I want to put a bare-bones WYSIWYG on it (line breaks, basic formatting, etc).
What are folks using for this? jWYSIWYG was a bit much, and now I’ve burned a day trying to get CKEditor to work. From a UX standpoint, I’d kind of prefer the standard box to something inline, but I’m at the point where the amount of time I’ve spent on this is greatly exceeding my interest in the feature- I’ll take whatever works. This seems like something that the community has probably already solved a hundred times over, and my codebase is starting to look less coherent and no more functional.
If you un-comment the textarea, that element works the way I would expect. The view I made won’t read the initial state, and won’t write any state. It doesn’t pass the “smell test” (looks kind of goofy and I’m sure I’m duplicating a lot of built-in behavior) but I can’t find an example of how it’s supposed to work. I’m willing to approach it completely differently if I’m being totally backward- I’d rather do this the “canonical way.”
The pre- and post- save states are being written to the log. What am I missing?
I tried using tinymce with my project and worked perfectly in the development environment, but cannot build or run the app in production environment, Is there anybody who is facing the same problem and would like to know how the issue is solved and also welcome solutions if somebody understood why is it so.