The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I will look into turning this into a product tonight where you can set the color, and other attributes of the placeholder, from the settings.
|
#12
|
||||
|
||||
I only want the color code to insert to the hook, after that I will find the css to play around
because this does not works to WYSIWYG editor. But you know better if this can be done as product |
#13
|
||||
|
||||
Quote:
In order to change the CSS of the placeholder text, it is best to have CSS selectors loaded so that the code for all the different browsers can be included, and a class name can be assigned to the textarea element. |
#14
|
||||
|
||||
Okay, here is a beta version...I have rrewritten the javascript so that it won't interfere with any other onload functions (like the toolbar tooltips I recently did), use a vbphrase for the placeholder text, and give in the settings an HTML colorpicker for the text color, and allow for any additional CSS to be added:
With those settings, my quick editor looks like: Let me know what you think... |
#15
|
||||
|
||||
This is a great plug in Mark!
OP: I can see this being useful but if not used correctly I could also see it displaying the same text with every post which would be terrible for seo. |
#16
|
||||
|
||||
It only displays in the empty editor textarea, as soon as you begin typing text in the editor, it disappears.
|
#18
|
||||
|
||||
Ok Mark i will test it, thanks you.
--------------- Added 18 Mar 2016 at 08:56 --------------- Well, it seems i have some issues. * it does not work in IE11 & Edge * it works with Firefox & Chrome * even if change phrase "Enter Post Here..." in $vbphrase[markfl_editorplaceholder_text] does not take effect, it shows the default text. * CSS change works. EDIT: *Have in my mind, as default, quick reply is open, users don't need to press to see. *The first hook test before this modification, did not work in all browsers either. Thanks... |
Благодарность от: | ||
MarkFL |
#19
|
||||
|
||||
I found what is causing the half issue.
Attachment 154527 Plugin "Add Placeholder To Editor" is disabled. As i saw in xml file "<plugin active="0" executionorder="5">" active is to "0" is this how its supposed to be? Any way when i activate the specific plugin changes to phrase works fine. Still only works with Firefox & Chrome EDIT: One more, in "Text Formatting" option, works only what i put first. Example font-size: 1.3em; background: #FFFF1A; Only first "font-size works", if i change order, than only "background" works. Trim? Thanks |
#20
|
||||
|
||||
Here is an update...and I'm not surprised IE fails...it marches to the beat of a different and deranged drummer.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|