-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send value to editor from JS #45
Comments
No that I have a solution, but I can re-create this. The value of the textarea can not be set with JS. |
And what should I do? |
pass the value into #editor before the dom was loaded. |
Hmmm I've tried that. Do you have an example? Much appreciated. Thx On Wednesday, April 23, 2014, Manikanta Reddy [email protected]
See for yourself how easy it is to manage files today. Join the revolution! Razuna - Hosted Digital Asset Management Solution Razuna - Open Source Digital Asset Management Twitter - http://twitter.com/razunahq |
If I add content before the dom was loaded - it's works fine. But I need add content after... |
function intiEditor(element) { |
Is it only possible to add content to the editor before the dom is loaded? Isn't there an option to change the content on runtime? Thanks. |
As already suggested:
should work at any time. Works for me at least on the latest 0.3.x branch. Which branch are u using? |
For the live of me, can't get it working. I mean, it works the very first time, but I need to change it on a click of a button. Then it doesn't work anymore. Using latest master branch here as well. |
Ok, I can now see it. Click on a button does not work with textarea.
That works for me at least. I pushed an example to index-multi-dev. |
We have already been using .html() to set the value. However, it only works the first time (when the page loads). Subsequent tries to set the value of a textarea don't. The reason for this could be that your branch "0.3.0-wip" doesn't work. Whenever we use ..wysihtml5() we get an error message of Uncaught "TypeError: undefined is not a function". However it works with the master branch. It could be that we use require.js for loading the scripts? Really appreciate your endeavours here. Thank you. |
Have you seen https://github.com/Waxolunist/bootstrap3-wysihtml5-bower/blob/v0.3.0-wip/index-multi-dev.html#L120? There I copy the value of textarea1 to textarea2 with the click on a button. In the examples section you can see an requirejs example. |
Ok just found a problem with requirejs for the current master. So I am working on that. Expect an update this weekend. It will work. |
Can you confirm that the example is working for you? See index-require.html. |
Yes index-require.html example works. Looking forward to the update this weekend ;-) Thank you for your help. |
Ok, so I will close this for now. |
Was this solved? I still cannot set the editor value with any of this options:
Please advice, thanks |
This works with the below code.
Hope this helps |
This does not work using an asp textbox: $("#text_area").wysihtml5(); It says that the editor is undefined. I have linked the bootstrap3-wysihtml5.all.min, jquery, and bootstrap.js.min. |
Thank you @abishekrsrikaanth you saved my day! Is there any documentation about the methods available on that editor object? |
Basically it is a version of this one: http://wysihtml.com/ |
Thanks @abishekrsrikaanth ! you saved my day as well. works like a charm. |
Why @abishekrsrikaanth answer is not on readme? |
Edit set text dynamically according to this issue Waxolunist/bootstrap3-wysihtml5-bower#45
|
Can't add text to editor.
But this does not work.
The text was updated successfully, but these errors were encountered: