Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] Bug in EditorPaneWidget

Can Kahya can_ky at hotmail.com
Tue Dec 13 08:26:47 PST 2011


Hello everyone,

I just stumbled over a bug in the EditorPaneWidget using Protege 3.4.7:
If a word is marked as bold/emphasized and this word is followed by an image, hitting enter in between is destroying the html-tag: the next time this instance is loaded, there is "/b>" added to the word. If you hit enter directly before the image now, a part of the html-string of the image (src="http....>) is displayed (also emphasized), instead of the image, the next time you load the instance.

here the steps how to reproduce the bug:

1. create an instance of a class with a String-Slot (with selected Widget Type: EditorPaneWidget)
2. Write in the Text field some text, e.g.: "Hello, Test"
3. Mark the word "Test" with your mouse and click on the bold/emphasize-button.
4. insert an image directly behind (the now emphasized) "Test"
5. hit enter between "Test" and the image
6. select another Instance of your Class in the Instance Browser
7. chose the test-instance again - now your Text should look like: "Hello Test /b>", followed by the image. this is already the bug. You can go on, destroying your html by the following:
8. hit enter in front of your image
9. switch to antother instance (instance browser)
10. switch back to the test-instance: the image is no longer displayed. Instead you can see the uncomplete html-tag for the image: "img src="http://protege.stanford.edu/images/ProtegeLogo.gif">" .

This also occurs with the other text-manipulation buttons (italics,underline,..)
Okay, thats it.
I would be curious, if you get the same behaviour and also if there is any (simple?) fix in the sourcecode..
thank you,
Can

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20111213/66e12870/attachment.html>


More information about the protege-discussion mailing list