Skip to content
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

set_class on img tag in "text mode" not working #82

Open
Waxolunist opened this issue Sep 29, 2014 · 4 comments
Open

set_class on img tag in "text mode" not working #82

Waxolunist opened this issue Sep 29, 2014 · 4 comments

Comments

@Waxolunist
Copy link
Contributor

Issue by karma4u101
Monday Aug 25, 2014 at 13:54 GMT
Originally opened as Waxolunist/bootstrap3-wysihtml5-bower#82


Using v0.3.2 bootstrap3-wysihtml5.all.js with a options object set as follows adding a image (via the img toolbar button) the set_class attribute will not be added to the img tag (in text mode) until switching to html view (and back).
Has anyone else seen this?
Any fix or workaround available ?

$('#mytxtinput').wysihtml5({
toolbar: {
'html': true,
fa: true
},
parserRules: {
classes: {
'mytxtimg': 1
},
tags: {
'img': {
'set_class': 'mytxtimg'
}
}
}
});

best regards Peter

@Waxolunist
Copy link
Contributor Author

Comment by Waxolunist
Monday Sep 08, 2014 at 05:56 GMT


I will have a look into that after releasing the next version.

@Waxolunist
Copy link
Contributor Author

Comment by karma4u101
Monday Sep 08, 2014 at 17:31 GMT


oki doki thanks, hopefully the new release don't show the same behaviour.

@Waxolunist
Copy link
Contributor Author

Comment by Waxolunist
Tuesday Sep 09, 2014 at 16:40 GMT


I am sorry but the issue still exists. I have written some tests and made a pull requests, so the topic will get some attention (see Voog/wysihtml#81). I will keep you updated, but for the moment I have to put the issue back to the backlog.

@Waxolunist
Copy link
Contributor Author

Comment by karma4u101
Tuesday Sep 09, 2014 at 16:54 GMT


Ok, thanks for the effort and updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant