Comments (7)
Comment by Waxolunist
Monday May 05, 2014 at 14:40 GMT
The problem might be, that u are using textarea, which in fact will render as sandboxed iframe, which makes everything a lot more difficult.
Try using the latest 0.3 version and initialize the editor with a div. This should get u started.
from bootstrap3-wysiwyg.
Comment by vasikgreif
Thursday May 08, 2014 at 15:06 GMT
Can you give me an example how to do this? I treid to call it on div the same way as on textarea, but that doesn't create anything..
from bootstrap3-wysiwyg.
Comment by Waxolunist
Friday May 09, 2014 at 14:49 GMT
There are some examples in the repo:
https://github.com/Waxolunist/bootstrap3-wysihtml5-bower/blob/v0.3.0-wip/index-multi-dev.html
https://github.com/Waxolunist/bootstrap3-wysihtml5-bower/blob/v0.3.0-wip/examples/index-require.html
from bootstrap3-wysiwyg.
Comment by vasikgreif
Saturday May 10, 2014 at 09:32 GMT
Thanks, got the wysivig displayed. Now, how can I get it's value inside a form? When I initialized it on textarea
, I gave it simply a name. How is that done with a div?
from bootstrap3-wysiwyg.
Comment by Waxolunist
Saturday May 10, 2014 at 18:26 GMT
Yes, beside its advantages to have a div, there are clear disadvantages, like the submit.
You can search google for other solutions: https://www.google.com/search?q=contenteditable+form+submit
The reason why it worked before was, that the content of the iframe is syncronized with the textarea, which is hidden on init. So probably you can do the same strategy.
Because most of the work regarding the editor itself is done in the editor component, maybe you find something helping you in the editors repo: https://github.com/Edicy/wysihtml5/
from bootstrap3-wysiwyg.
Comment by vasikgreif
Saturday May 10, 2014 at 19:40 GMT
Thanks, I ended up using simple:
$('.textarea').each(function() {
var target = $(this).attr('data-target');
$(target).val($(this).html()) ;
});
in the form submit callback.
from bootstrap3-wysiwyg.
Comment by Waxolunist
Monday May 12, 2014 at 21:38 GMT
Glad, I could help. I'll close for now.
from bootstrap3-wysiwyg.
Related Issues (20)
- Empty img tag HOT 1
- Focus lost when editor is reached
- big problem with black mask when adding link HOT 2
- Copy Paste Problem from Ms Word and Ms Outlook
- Display problem
- Link removal
- Resize textarea HOT 1
- wysihtml5 issue when running on jQuery version 3
- Editor with Angular
- Uncaught TypeError: Cannot read property 'font-styles' of undefined at f
- How to change order of buttons in toolbar?
- Custom commands: why only "title" and "id" attributes are autoupdateble?
- Module not found: Error: Can't resolve 'bootstrap'
- Bootstrap WYSIHTML5 is not loading in modal
- Insert Link modal does not works on Chrome. HOT 1
- Please add components Folder
- Remove auto-linking
- .write method is deprecated,
- toolbar html config not working HOT 2
- insert image and link - modal not as it should be
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap3-wysiwyg.