I wrote some plugins (style, font color, font size, bold, italic...), its function expected like dreamweaver to use style button. it is headachy thing!
my codes is not very good, and exists some bugs.
who has already written those plugins?
can you discuss it with me?
my codes is not very good, and exists some bugs.
who has already written those plugins?
can you discuss it with me?
RE: use stylesheet to edit text like dreamwea
You say that you have wrote several plugins, but those functions are already available in FCKeditor, what's the difference?
RE: use stylesheet to edit text like dreamwea
I mean, for example, in FCKeditor, when i select some words to change their color, current ways is to add "font" tag, it is not create "stylesheet". my expected ways is to add stylesheet like Dreamweaver.
e.g.
<style type="text/css">
.style1 {color: #0066FF}
.style2 {
font-size: 18px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-style: italic;
}
</style>
So in the list of style button, you can use the style which was created just now. The style list will be created dynamically. There is no need for you to reselect color.
So when you change color, font, bold, size and so on for words in many places, i think you don't want to clcik every button to change them every time.
RE: use stylesheet to edit text like dreamwea
What might be an easier solution: Add a "style edit" dialog (plugin) that is linked to a database, and upon saving, have the editor instance reload the XML for the styles (which would also have to come from the database) so they are available in the editor.
That way, you know exactly when to recheck available styles, and you don't have to delve too deep into the core code. Theoretically.
It's an experiment I've been meaning to try, but of course haven't got the chance.
I'll probably be taking a stab at it within the next month or two... If I'm successful I'll post the plugin in the tracker!
RE: use stylesheet to edit text like dreamwea
As an intermediate step you could create several styles for the Styles combo, but I'm still fighting to make it work as I want 100% of the time the way that I want (don't creating invalid markup and don't crashing anything).