karthick2014 / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

h1, h2, h3 #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. select text
2. apply h[1,2,3] tag
3. click "removeFormat" button - no actions, click h[1,2,3] - no actions

What is the expected output? What do you see instead?

I want see text without h[1,2,3] 

What version of the product are you using? On what operating system?

jQuery 1.2.2 (pack)
WYSIWYG - jQuery plugin 0.2

Please provide any additional information below.

in attach png file

Original issue reported on code.google.com by nikolay....@gmail.com on 29 Apr 2008 at 6:10

Attachments:

GoogleCodeExporter commented 8 years ago
Hello. I have the same problem. I created a buttom to convert the h[1,2,3] tags 
in p
tags writing this code in jquery.wysiwyg.js (line 242):
pmozilla  : { visible : true && $.browser.mozilla, className : 'p' , command :
'heading', arguments : ['p'] , tags : ['p'] },
p  : { visible : true && !( $.browser.mozilla ), className : 'p' , command :
'formatBlock', arguments : ['p'] , tags : ['p'] },

It is not the ideal solution but works.
(sorry for my english)

Original comment by oscarot...@gmail.com on 30 Apr 2008 at 11:09

GoogleCodeExporter commented 8 years ago
having trouble with this, too

Original comment by ftre...@gmail.com on 31 Oct 2008 at 11:12

GoogleCodeExporter commented 8 years ago
And me.
Jquery 1.2.5 (pack) Firefox 3.0.3 (not tried other browsers)

Original comment by sb%delta...@gtempaccount.com on 5 Nov 2008 at 4:24

GoogleCodeExporter commented 8 years ago
If you select some text, press [h1], [h2] or [h3], you cannot toggle it again by
pressing [h1], [h2] or [h3].

With [B] it is possible to toggle the text from bold to normal and vice versa.
Toggling text from header1 to normal should also be possible (logically)...

Original comment by marc.f...@gmail.com on 28 Jan 2009 at 4:37

GoogleCodeExporter commented 8 years ago
Depends on browser... Must be investigated...

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 5:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I made a workaround for this issue. Just added a new button that will convert h
(1,2,3) to <P> tag. This way the text in it is returned to a normal state. It 
works 
for me.

Add the following lines into jquery.wysiwyg.js:

Line 297: 
pmozilla  : { visible : true && $.browser.mozilla, className : 'p',  command : 
'heading', arguments : ['p'], tags : ['p'], tooltip : "Paragraph" },

Line 302 (after adding Line at 297, otherwise it's line 301):
p  : { visible : true && !( $.browser.mozilla ), className : 'p',  command : 
'formatBlock', arguments : ['<P>'], tags : ['p'], tooltip   : "Paragraph" },

This will add a new button to your toolbar right before h(1,2,3) ones. The only 
thing you have to do know is to add an icon to it and you're done. Is we can 
see 
Jwysiwyg uses Slik icon set (can be found here 
http://www.famfamfam.com/lab/icons/
silk/) so I found a nice little paragraph icon for this new button.

Hope this helps.

Original comment by aiveldes...@gmail.com on 19 Jan 2010 at 12:01

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks so much helped me alot, however the lines i had to change were 267 and 
then
270, not sure if mine was the standart js fiel though, 

Original comment by stiofans...@googlemail.com on 31 Mar 2010 at 1:35

GoogleCodeExporter commented 8 years ago
Fixed and landed to master.

http://github.com/akzhan/jwysiwyg

Original comment by akzhan.a...@gmail.com on 27 Jun 2010 at 10:25

GoogleCodeExporter commented 8 years ago
Hmm, I'm getting this issue in Chrome, build 0.99dev (Release: 2014-10-24).

I've set rmUnusedControls = true and have organized only those controls I need 
(grouped into 11 groupIndex bundles).

Any help?

Original comment by noisyblo...@gmail.com on 3 May 2015 at 8:58